Hello all. I have several lucky attempts to build an simple Mac
applications using Cocoa under windows, cygwin and gcc.
Some empty applications builds under windows, and even runs finely
under mac.
But when I try to use an messages in my program, linking fails.
Because it can't resove symbol _objc_msgSend.
As far I can see, it must be a stub linked to my binary, which calls
this function from libobjc.dyld.
But where is it, and what I need to link, to resolve this symbol?
Here is the linkage error log:
Apple Computer, Inc. version cctools-667.3
..../bin/ld: Undefined symbols:
..../bin/ld: undefined reference to `.objc_class_name_NSObject'
..../bin/ld: undefined reference to `_objc_msgSend'
..../obj/Converter.obj reference to
undefined3 .objc_class_name_NSObject
..../obj/ConverterController.obj reference to
undefined3 .objc_class_name_NSObject
..../obj/ConverterController.obj reference to undefined3 _objc_msgSend


|