symbol-not-found

Objective-c++ symbol not found strangeness

hej.h void hej(); hej.m void hej(){} main.mm #import "hej.h" int main(int argc, char *argv[]) { } This gives me: "hej()", referenced from: _main in main.o symbol(s) not found If I rename main.mm to main.m (single m), or hej.m to mm or cpp, then it works. (Though none of those "solutions" are preferable. Imagine you want to u...

Xcode print symbol not found for my C function which used in Objective-C method body.

Xcode build prints this error . Undefined symbols: "EGViewportDimensionMake(unsigned int, unsigned int, unsigned int, unsigned int)", referenced from: -[Renderer render] in Renderer.o ld: symbol(s) not found collect2: ld returned 1 exit status I cannot figure out what's the problem. I'm not good at classic C syntax....

Error while linking libvorbisfile.dylib into Mac application

I'm working on a program that loads sounds from Ogg Vorbis files, but whatever I do, the XCode project just doesn't seem to want to link libvorbisfile.a into my program. I keep getting linking errors: "_ov_read", referenced from: GSound::GSound(GWorld*, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in GSound...