I have code that compiles correctly in Visual Studios. I need to compile it using g++ but when I do I get a something like the text below. From what I understand this means it's not properly linking he header file that the undefined references are supposed to come from. The way I am linking them is also posted. Please suggest a fix?
extern "C"
{
#include "lexer.h"
}
"COMPILE_FAIL
Source.cpp: In function ‘void checkForAllRightEpsilon()’:
/tmp/ccQGWPkN.o: In function parseFile()':
Source.cpp:(.text+0xe86): undefined reference to
getToken'
...
/tmp/ccQGWPkN.o:Source.cpp:(.text+0x1249): more undefined references to `token' follow"