Xcode build problem
Xcode build problem
- Subject: Xcode build problem
- From: Justin Walker <email@hidden>
- Date: Sat, 9 Apr 2005 17:56:51 -0700
Hi, all,
I have a (large) C++ tool I am trying to build. I want to build with a
special version of a library, so I changed it in the project view, with
a new path. If I "get info" on the library, it shows the proper path.
Xcode produces the following link command:
/usr/bin/g++-3.3 -o
/Volumes/SandBox/Justin/NumberTheory/MFC/build/hecke
"-L/Volumes/SandBox/Justin/NumberTheory/MFC/build" "-L/usr/local/lib"
"-L/Volumes/SandBox/Justin/NumberTheory/MFC/LiDIA-2.1.3/library/.libs"
"-F/Volumes/SandBox/Justin/NumberTheory/MFC/build" -filelist
/Volumes/SandBox/Justin/NumberTheory/MFC/build/hecke.build/hecke.build/
Objects-normal/LinkFileList "-arch" "ppc" "-prebind"
"-Wl,-no_arch_warnings" "-lLiDIA" "-lgmp" "-lntl" "-lstdc++"
"-lLiDIA"
and this appears to get the copy of libLiDIA.a that lives in
/usr/local/lib (rdar://4084480).
The following modified link command seems to do the trick (as I
understand "-L", it affects the libraries up to the next "-L", but I
don't know the effect of multiple sequential "-L"s (it appears to be
"check the first -L; then the next; then ..."):
/usr/bin/g++-3.3 -o
/Volumes/SandBox/Justin/NumberTheory/MFC/build/hecke
"-L/Volumes/SandBox/Justin/NumberTheory/MFC/build"
"-L/Volumes/SandBox/Justin/NumberTheory/MFC/LiDIA-2.1.3/library/.libs"
"-F/Volumes/SandBox/Justin/NumberTheory/MFC/build" -filelist
/Volumes/SandBox/Justin/NumberTheory/MFC/build/hecke.build/hecke.build/
Objects-normal/LinkFileList "-arch" "ppc" "-prebind"
"-Wl,-no_arch_warnings" "-lLiDIA" "-L/usr/local/lib" "-lgmp" "-lntl"
"-lstdc++"
Anyone know how I can persuade Xcode to put the "-L"s in the right
places?
Thanks for the help!
Regards,
Justin
--
Justin C. Walker, Curmudgeon-at-Large
/~\ The ASCII
\ / Ribbon Campaign
X Help Cure HTML Email
/ \
_______________________________________________
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