Undefined symbols for architecture x86_64:
"SOGetAllSpells()", referenced from:
_SATest in TestFile.o
ld: symbol(s) not found for architecture x86_64
The error only occurs in the C++ file, not the .m (or C) file.
The symbol exists otherwise it would complain ‘_Test1 in Test.o' also.
If I remove the symbol reference from the C++ file, it compiles without any issue.
The library symbol exists, nm verified it for me.
OS 10.10.1, XCode 5.1.1 & 6.1
Any idea why this is happening?