PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : nvparse Compile-Problem


sth
2004-11-09, 20:35:53
Kann mir einer sagen, wie man nvparse unter Linux (Debian Sarge) zum Compilen bewegen kann?

Der Compile-Vorgang stoppt als erstes bei:
make: *** No rule to make target `_ts1.0_parser.o', needed by `../../../lib/libnvparse.so'. Stop.

Das Ganze lässt sich noch umgehen, indem man vorher manuell
bison -d -o _ps1.0_parser.c -p ps10_ ps1.0_grammar.y
mv -f _ps1.0_parser.c _ps1.0_parser.cpp
bison -d -o _rc1.0_parser.c -p rc10_ rc1.0_grammar.y
mv -f _rc1.0_parser.c _rc1.0_parser.cpp
bison -d -o _ts1.0_parser.c -p ts10_ ts1.0_grammar.y
mv -f _ts1.0_parser.c _ts1.0_parser.cpp
bison -d -o _vs1.0_parser.c -p vs10_ vs1.0_grammar.y
mv -f _vs1.0_parser.c _vs1.0_parser.cpp
flex -Prc10_ -o_rc1.0_lexer.cpp rc1.0_tokens.l
flex -Pps10_ -o_ps1.0_lexer.cpp ps1.0_tokens.l
flex -Pts10_ -o_ts1.0_lexer.cpp ts1.0_tokens.l
flex -Pvs10_ -o_vs1.0_lexer.cpp vs1.0_tokens.l
ausführt (aus der Makefile rauskopiert).

Als nächstes stoppt der Compile-Vorgang dann aber bei
g++ -DYY_NO_UNPUT -DUNIX -Wall -g -I../../../include/glh -I../../../include/shared -I/usr/X11R6/include -c _vs1.0_lexer.cpp
vs1.0_tokens.l:180: error: `INITIAL' was not declared in this scope
_vs1.0_lexer.cpp:3295: warning: `void yyunput(int, char*)' defined but not used
make: *** [_vs1.0_lexer.o] Error 1
Hier weiß ich aber nun auch nicht weiter (kein Plan von lex/yacc)