[GiNaC-list] Error compiling GiNaC 1.3.0
Roberto Bagnara
bagnara at cs.unipr.it
Sun Nov 14 11:16:06 CET 2004
Here is what happens on a Fedora Core 3 system, CLN 1.1.9
and GCC 3.4.3:
...
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -g -O2 -MT input_parser.lo -MD -MP -MF .deps/input_parser.Tpo -c input_parser.cc -fPIC -DPIC -o .libs/input_parser.o
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -g -O2 -MT input_parser.lo -MD -MP -MF .deps/input_parser.Tpo -c input_parser.cc -o input_parser.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -g -O2 -MT input_lexer.lo -MD -MP -MF ".deps/input_lexer.Tpo" -c -o input_lexer.lo input_lexer.cc; \
then mv -f ".deps/input_lexer.Tpo" ".deps/input_lexer.Plo"; else rm -f ".deps/input_lexer.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -g -O2 -MT input_lexer.lo -MD -MP -MF .deps/input_lexer.Tpo -c input_lexer.cc -fPIC -DPIC -o .libs/input_lexer.o
In file included from /home/cbauer/projects/GiNaC-HEAD/ginac/input_lexer.ll:35:
input_lexer.h:43: error: conflicting declaration 'char ginac_yytext[]'
input_lexer.cc:446: error: 'ginac_yytext' has a previous declaration as `char*ginac_yytext'
input_lexer.h:43: error: type mismatch with previous external decl of `char ginac_yytext[]'
input_lexer.cc:446: error: previous external decl of `char*ginac_yytext'
input_lexer.h:43: error: declaration of `char ginac_yytext[]'
input_lexer.cc:446: error: conflicts with previous declaration `char*ginac_yytext'
make[2]: *** [input_lexer.lo] Error 1
make[2]: Leaving directory `/usr/local/distrib/GiNaC-1.3.0/ginac'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/distrib/GiNaC-1.3.0'
make: *** [all] Error 2
$
Cheers,
Roberto
--
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara at cs.unipr.it
More information about the GiNaC-list
mailing list