From: sv <vasil@hermes.si>
Subject: linker problem
Date: Mon, 01 Jul 2002 16:51:20 +0200 [thread overview]
Message-ID: <pan.2002.07.01.16.51.20.29825.7195@hermes.si> (raw)
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
reply other threads:[~2002-07-01 14:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox