Linker moans about crt1.o when custom dylib used
I've recently started with Xcode, having otherwise been proficient with C/C++ for some time.
I have a custom dynamic library, libftd2xx.dylib, from ftdichip.com, which implements communication with USB hardware from same company. I have no trouble linking and using this library using gcc at the console level. EG:...
gcc test.c -lftd2xx -o test
... works just fine.
But I've now started a simple Objective-C Cocoa project and am trying to link in libftd2xx. That's where it all goes wrong. If this library is linked (using any one of several methods in Xcode) the linker fails with, none other than, check this out!...:
ld: could not find entry point "start" (perhaps missing crt1.o)
This is VERY odd to me. Why should simply linking in a dynamic library cause such a catastrophic linker error? If I remove "-lftd2xx" from "Other Linker Flags" in project preferences and comment references to external functions therein, then the application compiles and runs just fine!
I'm totally perplexed by this and, sadly, Googling all day yesterday hasn't shed any light on the problem.
If it helps, here's some otool -L output for the library in question:
% otool -L /usr/local/lib/libftd2xx.dylib
/usr/local/lib/libftd2xx.dylib:
/usr/local/lib/libftd2xx.0.1.0.dylib (compatibility version 0.1.0, current version 0.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.6)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 368.27.0)
Many, many, thanks for any assistance you may be able to provide!
Kind Regards,
Bryan.
MacBook, Mac OS X (10.5), 2GB RAM