View

undefined reference to `__objc_class_name_MYCLASSMNAME'
---------------------------------------------------------------------------

Description


mylibname.o:(.data+0x384): undefined reference to `__objc_class_name_MYCLASSMNAME'


Suggested solutions

Posted by user:anonymous
When compiling with gcc, the order of items in the linker command line is important.

The rule to follow is: put items which require symbols *before* the items that provide those symbols.

In general, put the output item at the beginnning followed by high-level libraries, followed by base libraries.


Please Enter Security Code: