[CMake] Problem compiling on XCode @ Leopard
Steven Van Ingelgem
steven at vaningelgem.be
Thu Feb 7 17:02:20 EST 2008
Hi,
I don't know if this is a known problem, but I'm trying to compile an
executable at a Mac.
It compiles nicely with the generator "Unix Makefiles", but when I
compile it under Debug mode in the generator "Xcode", it gives the
error:
"_main", referenced from:
start in crt1.10.5.so
symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Does anyone know what this is? I search google but all those errors
seem to refer to people using "-shared" instead of "-dynamiclibrary".
But I'm not trying to create a dll, i'm trying to create an exe?!
And further more, it works fine under the normal makefiles... And
XCode is just a frontend for gcc so...
How can I show what XCode is doing? So I can compare the linking
prompts of both makefile & XCode?
Thanks
More information about the CMake
mailing list