From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb420,13b9ac26e9873c5d,start X-Google-Attributes: gidfb420,public X-Google-Thread: 1164f8,13b9ac26e9873c5d,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2002-07-01 07:51:23 PST From: sv Subject: linker problem Date: Mon, 01 Jul 2002 16:51:20 +0200 Newsgroups: comp.sys.dec,alt.dec Message-ID: User-Agent: Pan/0.11.2 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: ALL NNTP-Posting-Host: external-3.hermes.si X-Trace: news.perftech.si 1025535044 external-3.hermes.si (1 Jul 2002 16:50:44 +0200) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!small.news.tele.dk!212.43.194.69!fr.clara.net!heighliner.fr.clara.net!news-hub.siol.net!kanja.arnes.si!news.perftech.si!not-for-mail Xref: archiver1.google.com comp.sys.dec:13577 Hello, I have a question I build a shared library with extension .so #cc mylib.c -G -o libmylib.so But when I build my program which uses this shared library I have to use '-brtl' flag, otherwise it is impossible to build my program # cc main.c -o main -L. -lmylib -brtl all works fine # cc main.c -o main -L. -lmylib I can not build my program Cannot find or open library file: -l mylib ld:open(): A file or directory in the path name does not exist. Why linker can not find my library? thanks, Sergej