On Friday 28 March 2003 12:55, David Haller wrote:
gcc y.tab.c -ly -ll -o run
Also die flex-Lib heisst libfl, zu linken mit -lfl, eine liby kenne ich nicht. Yep, habe ich auch hier gefunden und wird auch beim compilieren erkannt. Aber...
Hier ist der Auszug meines "Compilierversuchs": hg@Thinkpad:~/Documents/University/COP 6726/project/current> gcc lex.yy.o y.tab.c -lfl -o run lex.yy.o: In function `yylex': lex.yy.o(.text+0x46e): undefined reference to `yyerror' /tmp/ccH1E2Uo.o: In function `yyparse': /tmp/ccH1E2Uo.o(.text+0x189): undefined reference to `yyerror' /tmp/ccH1E2Uo.o(.text+0x3d1): undefined reference to `yyerror' collect2: ld returned 1 exit status hg@Thinkpad:~/Documents/University/COP 6726/project/current> Wenn ich DIESELBEN lex/yacc Dateien auf den Solaris System meiner Uni compilere (mit: "gcc lex.yy.o -ll -ly y.tab.c -o run"), geht das wunderbar und das Program laeuft auch richtig. Also nehme ich mal an, das die Files ok sind und nur die "compiliererei" hier hakt. Irgendeine Idee?? Danke schon mal Hans-Georg