Page 1 of 1

[r1152] Linux - compiling error on parse_xlat.cpp

Posted: Mon Aug 11, 2008 5:10 am
by scen
Hi, i'm trying to compile ZDoom, from SVN (r1152), but building process dies with this error:

Code: Select all

[ 30%] Building CXX object src/CMakeFiles/zdoom.dir/xlat/parse_xlat.o
/home/davide/src/svn/zdoom/src/xlat/parse_xlat.cpp: In member function ‘virtual bool XlatParseContext::FindToken(char*, int*)’:
/home/davide/src/svn/zdoom/src/xlat/parse_xlat.cpp:124: error: ‘XLAT_MAXLINESPECIAL’ was not declared in this scope
make[2]: *** [src/CMakeFiles/zdoom.dir/xlat/parse_xlat.o] Error 1
make[1]: *** [src/CMakeFiles/zdoom.dir/all] Error 2
make: *** [all] Error 2
I'm on Gentoo Linux AMD64, and i'm using GCC-4.1.2

Re: [r1152] Linux - compiling error on parse_xlat.cpp

Posted: Mon Aug 11, 2008 7:14 am
by Graf Zahl
Strange. That constant is declared in a Lemon generated header. Can you post your xlat_parser.c and xlat_parser.h files? Something must have gone wrong while generating them.

Re: [r1152] Linux - compiling error on parse_xlat.cpp

Posted: Mon Aug 11, 2008 7:48 am
by Guest
Here you are:

xlat_parser.h: http://rafb.net/p/YfBPDc47.html

xlat_parser.c: http://rafb.net/p/ohDQKi97.html

Re: [r1152] Linux - compiling error on parse_xlat.cpp

Posted: Mon Aug 11, 2008 7:50 am
by Guest
[OT]
LOL, "Clara Settingbore"? :lol:
[/OT]

Re: [r1152] Linux - compiling error on parse_xlat.cpp

Posted: Mon Aug 11, 2008 7:54 am
by Graf Zahl
The constant is there. This should compile.

Re: [r1152] Linux - compiling error on parse_xlat.cpp

Posted: Mon Aug 11, 2008 4:28 pm
by randi
I just did a compile with Gentoo AMD64 and GCC 4.3.1, and had no trouble.

Re: [r1152] Linux - compiling error on parse_xlat.cpp

Posted: Mon Aug 11, 2008 4:42 pm
by randi
I just wiped my source directory and re-checked it out, and still no trouble compiling on Linux.

Re: [r1152] Linux - compiling error on parse_xlat.cpp

Posted: Tue Aug 12, 2008 4:59 am
by scen
randy wrote:I just wiped my source directory and re-checked it out, and still no trouble compiling on Linux.
You're right, wiping and redoing the checkout was the key :oops:

Sorry for this useless bug report, close it immediately :cry: :roll: