• 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: problems linking with dylib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problems linking with dylib


  • Subject: Re: problems linking with dylib
  • From: Kaveh Kardan <email@hidden>
  • Date: Fri, 01 Jul 2005 09:36:41 -1000

Precisely. The link statement is generated by XCode, based on my dragging of the dylib into the project. I don't know if I'm doing something wrong or this is a bug in XCode 1.5.

It is adding the path for the library:

-L/usr/local/lib/gauche/0.8.4/powerpc-apple-darwin7.8.0

but as you say it tries to find "gauche" as opposed to "-lgauche".

I wonder how come it links properly against "/usr/lib/libstdc++.a". Perhaps it has a problem with dynamic libraries?

Kaveh Kardan                 Chief Technologist
email@hidden             Academy for Creative Media
(808)956-5302                University of Hawaii

On Jul 1, 2005, at 4:06 AM, james tittle wrote:

On Jul 1, 2005, at 4:12 AM, Kaveh Kardan wrote:

I have a library:

/usr/local/lib/gauche/0.8.4/powerpc-apple-darwin7.8.0/libgauche.dylib

which I drag into the External Frameworks and Libraries of XCode, but when building, I get the following error:

Libtool /Users/kaveh/Development/bronze/build/libbronze.a
cd /Users/kaveh/Development/bronze
/usr/bin/libtool -static -o /Users/kaveh/Development/bronze/build/libbronze.a -L/Users/kaveh/Development/bronze/build -L/usr/lib/gcc/darwin/3.3 -L/usr/local/lib/gauche/0.8.4/powerpc-apple-darwin7.8.0 /usr/lib/libstdc++.a -framework OpenGL -framework QuickTime -framework GLUT -framework CoreServices -framework OpenAL -framework Foundation gauche -framework Carbon -filelist /Users/kaveh/Development/bronze/build/bronze.build/bronzelib.build/ Objects-normal/bronze.LinkFileList
/usr/bin/libtool: can't open file: gauche (No such file or directory)

...there seems to be a typo: you simply have "...-framework Foundation gauche...", so libtool can't figure out what gauche is...so, just change it to "-lgauche" if it's in your path...


jamie


_______________________________________________ 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: 
 >problems linking with dylib (From: Kaveh Kardan <email@hidden>)
 >Re: problems linking with dylib (From: james tittle <email@hidden>)

  • Prev by Date: Breakpoints in subprojects?
  • Next by Date: viewing globals
  • Previous by thread: Re: problems linking with dylib
  • Next by thread: Re: problems linking with dylib
  • Index(es):
    • Date
    • Thread