* linker problem
@ 2002-07-01 14:51 sv
0 siblings, 0 replies; only message in thread
From: sv @ 2002-07-01 14:51 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-01 14:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-01 14:51 linker problem sv
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox