xcode + gdc linking problems
Scott Carver
scott at artificia.org
Tue Apr 3 16:55:48 PDT 2007
So, I'm working on getting XCode working in a semi-reasonable fashion
with D (I'm a relative beginner at mucking around with XCode this deep,
and with D as well, so bear with me...). I got all the appropriate
language specs, compiler plugins, gdc, etc. (I think), and my sample
program compiles fine, but fails during the linking phase with this:
/usr/bin/ld: Undefined symbols:
_main
__D10TypeInfo_k6__initZ
__D11TypeInfo_Aa6__initZ
__D14TypeInfo_Tuple6__vtblZ
__D3std5stdio12__ModuleInfoZ
__D3std5stdio8writeflnFYv
__Dmodule_ref
___gdc_personality_v0
I did some checking, and found xcode running this during the linking phase:
/usr/bin/gdc -o /Users/fsc/Documents/DTest/build/Debug/DTest -filelist
/Users/fsc/Documents/DTest/build/DTest.build/Debug/dtool.build/Objects-normal/ppc/DTest.LinkFileList
-L/Users/fsc/Documents/DTest/build/Debug
-F/Users/fsc/Documents/DTest/build/Debug -arch ppc -Wl,-Y,1455
This fails with the same error when I run it from the terminal. I tried
different variations on this, and found that everything will link and
run fine if I /remove/ the '-filelist /Users...etc' option, and just
specify the .o's by hand, ala:
/usr/bin/gdc -o (...some stuff...)/*.o (... and the rest ...)
In the end, -filelist doesn't seem to work appropriately. Any
suggestions? Can anyone point me in the right direction as far as
modifying the computer plugin / specs / whatever, to get things linking
right? Am I missing something really obvious? Thanks much!
- Scott Carver
More information about the D.gnu
mailing list