Link-Error XCode 3.0: -init can only be used with -dynamiclib
Link-Error XCode 3.0: -init can only be used with -dynamiclib
- Subject: Link-Error XCode 3.0: -init can only be used with -dynamiclib
- From: Martin Baumgärtner <email@hidden>
- Date: Thu, 10 Apr 2008 11:41:11 +0200
Hello all,
building a bundle (an Xtension for Quark XPress) with *XCode 3.0* on an
Intel Mac (OS X v10.5.2, GCC 4.0.1) I got the following linker error:
/Linking [...]
/
/ -init can only be used with -dynamiclib/
/ Command /Developer/usr/bin/g++-4.0 failed with exit code 1/
/Build failed (1 error)/
The project was originally imported from CodeWarrior to *XCode 2.4.1*.
Amazingly the whole thing worked without any problems under *XCode
2.4.1* on an Intel Mac (OS X v10.4.11, GCC 4.0.1).
On the gcc man page I found the parameter "-init" together with
"-bundle" and "-dynamiclib" as three of many "Darwin Options". It seems
to me that I need to switch off the parameter "-init" somehow.
Unfortunately I don?t have any idea how to do this. Or is this a wrong
kind of an approach? Any (better) idea? Like I already mentioned: under
*XCode 2.4.1* the bundle could be built without problems.
Thanks in advance for any useful hint!
Martin
_______________________________________________
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