For anyone that has seen one of:
ld: warning in library.so, file is not of required architecture
or
ld: warning in library.dylib, file is not of required architecture
First double check your -arch options. If you google you'll find lots of examples.
If you're trying to create a -bundle though, and library.so/library.dylib is also a bundle then this will not work. You have to compile the library with -dynamiclib instead.
More information can be found on the fink wiki.
Comments
Hi, again commnet. The dylib
Hi, again commnet.
The dylib need to be linked is of architecture i386, I compiles the application only for i386 and don't get the architecture error information, but I get another information "can't map file, errno=22".
Hi, I have got this error
Hi, I have got this error when I use the Xcode 3.0 on the Mac OS X 10.5. I want to link the dylib in the /usr/local/lib/**.dylib, but it sent to the error information.
So, My question is where and how to set parameters in Xcode 3.0 to link the dylib.
Any suggestion I will appreciate!