www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Re: D for Xcode 1.0b1 - error while linking

 hellod1:0: Command /usr/bin/gdc failed with exit code 1
 Tool:0: can't locate file for: -lgphobos
 Tool:0: warning -L: directory name 
 (/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin/default) does not 
 exist

It looks like you're trying to link against the Mac OS X 10.4 Universal SDK and that the compiler is searching for the library within the SDK instead of looking at the standard system path. Assuming building against the 10.4 SDK is what you want, here's my solution: add libgphobos.a to the SDK using a symlink, like this: cd /Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc/darwin sudo mkdir default sudo ln -s /usr/lib/libgphobos.a default/libgphobos.a I'll see if I can arrange things better. Handling this from inside the the plugin would be ideal.

Now all works well. Thank you. Luca.
Oct 23 2007