Re: Problems finding libraries during linking
Date: Fri, 22 Dec 2000 14:37:56 GMT
Message-ID: <91vp04$8nm$1_at_nnrp1.deja.com>
In article <3A42F69D.649B7E82_at_yahoo.com>,
Daniel <dlrubinANTI-SPAM_at_yahoo.com> wrote:
> I'm trying to statically link libraries associated with an application
> using Oracle PRO*C, but get the following errors related to being
unable
> to find some of the libraries. I have LD_LIBRARY_PATH set to the
Oracle
> lib directory. Here's my link line and the errors:
>
> /usr/local/bin/g++ -o SubmitData SubmitData.o
> -L/usr/pubsw/apps/oracle/8.1.6/lib/ -lclntsh `cat
> /usr/pubsw/apps/oracle/8.1.6/lib/sysliblist` -R
> /usr/pubsw/apps/oracle/8.1.6/lib -laio -lm -lthread -static
> -R/usr/pubsw/apps/oracle/8.1.6/lib ../yacgi12/
> lib/libyacgi.a -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/
> -lstdc++
> ld: fatal: library -lclntsh: not found
> ld: fatal: library -ldl: not found
> ld: fatal: library -lsched: not found
> ld: fatal: library -laio: not found
> ld: fatal: library -lthread: not found
> ld: fatal: File processing errors. No output written to SubmitData
> collect2: ld returned 1 exit status
> make[1]: *** [cppbuild] Error 1
>
> Any ideas?
>
> Thanks,
> Daniel
>
> --
> To reply to me directly, please remove "ANTISPAM" from the reply-to
> email address.
>
> --
> To reply to me directly, please remove "ANTISPAM" from the reply-to
> email address.
>
>
This is still a C/C++ program. You are missing system libraries -- thread is a standard (?) libary. Also some of the libraries are not even in the link statement eg libsched and libdl. You need additional references to the libraries and presumably addition -L to connect in the standard libraries.
-- Michael Krolewski Rosetta Inpharmatics mkrolewski_at_rii.com Usual disclaimers Sent via Deja.com http://www.deja.com/Received on Fri Dec 22 2000 - 15:37:56 CET