Re: newbie q: Static library in /usr/lib not being seen?
Re: newbie q: Static library in /usr/lib not being seen?
- Subject: Re: newbie q: Static library in /usr/lib not being seen?
- From: Tommy Nordgren <email@hidden>
- Date: Sun, 19 Feb 2006 20:19:58 +0100
On 19 feb 2006, at 19.12, Dan Caugherty wrote:
Hey all --
I'm currently working on a new dylib that employs a static library
in good ol'
/usr/lib. (The static lib is for Libnet, a third party packet
construction
tool. Coercing Xcode 2.2 to behave would be much better IMO than
modifying
someone else's makefile/config files.)
For some reason, gcc can't seem to see it during the link phase.
Note the optional linker flags I added near the end of the command
in the build log below:
Ld /Users/danc/work/rawio/build/Debug/libfoo.dylib normal ppc
cd /Users/danc/work/rawio
/usr/bin/gcc-4.0 -o /Users/danc/work/foo/build/Debug/
libfoo.dylib -L/Users/danc/work/foo/build/Debug -L/Developer/SDKs/
MacOSX10.4u.sdk/usr/lib -F/Users/danc/work/foo/build/Debug -
filelist /Users/danc/work/foo/build/foo.build/Debug/foo.build/
Objects-normal/ppc/libfoo.LinkFileList -arch ppc -Wl,-single_module
-compatibility_version 1 -current_version 1 -install_name /usr/
local/lib/libfoo.dylib -dynamiclib -L/usr/lib -lpcap -lnet -Wl,-
search_paths_first -isysroot /Developer/SDKs/MacOSX10.4u.sdk
ld: can't locate file for: -lnet
/usr/bin/libtool: internal link edit command failed
What am I missing here? Why can't/won't Xcode or gcc-4.0 find /usr/
lib/libnet.a ?
You are missing the fact that there is NO standard library with the
name libnet on Tiger. There is however a set of libraryies
with names staring with libnetsnmp.
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden