views:

63

answers:

0

Thank you in advance for your help. I have an iPhone application written in a combination of c and Objective-C which gets a lot of linker errors such as:

"_gListSelection", referenced from: _gListSelection$non_lazy_ptr in PalmUtil.o (maybe you meant: _gListSelection$non_lazy_ptr)

These variables are properly defined as extern in my .h header files and are properly initialized in my .m source files, as in:

extern int gListSelection; int gListSelection = -1;

This application was copied and modified from another project which does compile and link successfully. I have not yet tried creating a brand new application and reimporting my source files (of which there are several dozen). Any ideas why the linker cannot find these variables?

Thanks, Jack D