Hello, On Fri, Nov 30, 2007 at 11:39:59PM +0000, alexander baker wrote:
g++ -g -O2 -o .libs/ginsh ginsh_parser.o ginsh_lexer.o ../ginac/.libs/libginac.so -lreadline -lncurses -L/usr/local/lib /usr/local/lib/libcln.so -Wl,--rpath -Wl,/usr/local/lib ginsh_lexer.o: In function `main': /home/bakera/inglethorpe/ginac/GiNaC/ginsh/ginsh_lexer.cc:1: multiple definition of `main' ginsh_parser.o:/home/bakera/inglethorpe/ginac/GiNaC/ginsh/ginsh_parser.yy:896: first defined here /usr/bin/ld: Warning: size of symbol `main' changed from 1474 in ginsh_parser.o to 3 in ginsh_lexer.o
[skipped]
../ginac/.libs/libginac.so: undefined reference to `GiNaC::get_symbol_name(GiNaC::ex const&)' ../ginac/.libs/libginac.so: undefined reference to `GiNaC::is_lexer_symbol_predefined(GiNaC::ex const&)' ../ginac/.libs/libginac.so: undefined reference to `ginac_yytext' ../ginac/.libs/libginac.so: undefined reference to `GiNaC::set_lexer_symbols(GiNaC::ex)' ../ginac/.libs/libginac.so: undefined reference to `ginac_yylex()' ../ginac/.libs/libginac.so: undefined reference to `GiNaC::set_lexer_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../ginac/.libs/libginac.so: undefined reference to `ginac_yyrestart(_IO_FILE*)'
This clearly points to a problem with bison- and flex-generated files. Could you please post the following files: config.log ginac/input_parser.cc ginac/input_lexer.cc ginsh/ginsh_parser.cc ginsh/ginsh_lexer.cc so I can figure out what the problem is. Best regards, Alexei -- All science is either physics or stamp collecting.