[antlr-interest] Error compiling generated C code (possibly 32/64 bit conflict?)

Jim Idle jimi at temporal-wave.com
Tue Jan 20 14:11:24 PST 2009


Andy Grove wrote:
> Jim,
>
> Thanks for the prompt response. Yes, I did run "make install" and the 
> antlr3 header files are in /usr/local/include. I get different errors 
> if I remove those headers so the header files are being discovered.
>
> I am using this syntax to call the compiler:
>
> g++ -I$ANTLR_INCLUDE_PATH -O0 -g3 -Wall -c -fmessage-length=0 -fPIC 
> -MMD -MP -MF"src/sqlparser/DbsMySQL_CPPLexer.d" 
> -MT"src/sqlparser/DbsMySQL_CPPLexer.d" -o"output/DbsMySQL_CPPLexer.o" 
> "src/sqlparser/DbsMySQL_CPPLexer.c"
>
And don't forget that is you are not in the source directory, you will need:

-I src/sqlparser as well.

Jim



More information about the antlr-interest mailing list