• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: newbie q: Static library in /usr/lib not being seen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie q: Static library in /usr/lib not being seen?


  • Subject: Re: newbie q: Static library in /usr/lib not being seen?
  • From: "D. Walsh" <email@hidden>
  • Date: Sun, 19 Feb 2006 13:19:14 -0500
  • Mta-interface: amavisd-new-2.2.1 (2004-12-22) + Maia Mailguard 1.1.0 at daleenterprise.com


On Feb 19, 2006, at 13: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 ?

try placing a copy in /Developer/SDKs/MacOSX10.4u.sdk/usr/lib


Thx in advance, -- Dan C.

-- Dale

_______________________________________________
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


References: 
 >newbie q: Static library in /usr/lib not being seen? (From: Dan Caugherty <email@hidden>)

  • Prev by Date: newbie q: Static library in /usr/lib not being seen?
  • Next by Date: Re: newbie q: Static library in /usr/lib not being seen?
  • Previous by thread: newbie q: Static library in /usr/lib not being seen?
  • Next by thread: Re: newbie q: Static library in /usr/lib not being seen?
  • Index(es):
    • Date
    • Thread