vtable for .. referenced from compile error xcode

Viewed 28731

I was getting the following error compiling an iPhone project:

"vtable for oned::MultiFormatUPCEANReader", referenced from:
      __ZTVN4oned23MultiFormatUPCEANReaderE$non_lazy_ptr in MultiFormatUPCEANReader.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Anybody know how I may fix it?

5 Answers

The same error can occur when one forgets to put the class name in front of the definition of a method in the cpp file - like I just did. And it's not an xcode thing, I'm using cmake for building and gcc as compiler (as xcode typically does).

Related