newbie q: Static library in /usr/lib not being seen?
newbie q: Static library in /usr/lib not being seen?
- Subject: newbie q: Static library in /usr/lib not being seen?
- From: Dan Caugherty <email@hidden>
- Date: Sun, 19 Feb 2006 13:12:20 -0500
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 ?
Thx in advance,
-- Dan C.
_______________________________________________
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