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 -W l,/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: f irst defined here /usr/bin/ld: Warning: size of symbol `main' changed from 1474 in ginsh_parser.o to 3 in ginsh_lexer.o ginsh_parser.o: In function `yyerror(char*)': ginsh_parser.cc:(.text+0xe4): undefined reference to `yytext' ginsh_parser.o: In function `yyparse()': ginsh_parser.cc:(.text+0x8451): undefined reference to `yylex()' ginsh_parser.cc:(.text+0x8b05): undefined reference to `syms' ginsh_parser.cc:(.text+0x8b1b): undefined reference to `syms' ginsh_parser.cc:(.text+0x9689): undefined reference to `symboltype' ginsh_parser.cc:(.text+0x9698): undefined reference to `symboltype' ginsh_parser.o: In function `main': ginsh_parser.cc:(.text+0xca11): undefined reference to `num_files' ginsh_parser.cc:(.text+0xca3d): undefined reference to `file_list' ginsh_parser.cc:(.text+0xca74): undefined reference to `yyin' ginsh_parser.cc:(.text+0xca7c): undefined reference to `num_files' ginsh_parser.cc:(.text+0xca84): undefined reference to `file_list' ginsh_parser.cc:(.text+0xca8e): undefined reference to `file_list' ../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_prede fined(GiNaC::ex const&)' ../ginac/.libs/libginac.so: undefined reference to `ginac_yytext' ../ginac/.libs/libginac.so: undefined reference to `GiNaC::set_lexer_symbols(GiN aC::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*)' collect2: ld returned 1 exit status make[2]: *** [ginsh] Error 1 make[2]: Leaving directory `/home/bakera/inglethorpe/ginac/GiNaC/ginsh' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/bakera/inglethorpe/ginac/GiNaC' make: *** [all-recursive-am] Error 2 On 30/11/2007, Alexei Sheplyakov <varg@theor.jinr.ru> wrote:
On Thu, Nov 29, 2007 at 03:32:11PM +0000, alexander baker wrote:
bakera@treebeard:~/inglethorpe/ginac$ c++ simple.cpp -o simple -lcln -lginac /usr/local/lib/libginac.so: undefined reference to `GiNaC::get_symbol_name(GiNaC::ex const&)' /usr/local/lib/libginac.so: undefined reference to `GiNaC::is_lexer_symbol_predefined(GiNaC::ex const&)' /usr/local/lib/libginac.so: undefined reference to `ginac_yytext' /usr/local/lib/libginac.so: undefined reference to `GiNaC::set_lexer_symbols(GiNaC::ex)' /usr/local/lib/libginac.so: undefined reference to `ginac_yylex()' /usr/local/lib/libginac.so: undefined reference to `GiNaC::set_lexer_string(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' /usr/local/lib/libginac.so: undefined reference to `ginac_yyrestart(_IO_FILE*)' collect2: ld returned 1 exit status
# apt-get install flex bison $ make distclean $ rm -f config.log $ ./configure --whatever-you-like && make && make check
Best regards, Alexei
-- All science is either physics or stamp collecting.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQIVAwUBR1AAFiXMWnuYxRVqAQJmdA/8DwNclp97pyEphuR7653VmtLN3/BTqJVU 4vMSkBYbCufqEuwsSPyvTjPIPOizUTd7HOmN9XB8wrrUSqiOOBK+RnmRNRRpLnJH ux8k4llwNQxC4PHVU62HwvOyeTXs3QrQmIYIXBtUm4m8q0K3boF903w64wWmaf9U yjow5bk2yzCLSTAUwmYoWOHQgtQZVHhunLDt5ZqSYsQseEWI2G6i3Zh/PEHmThSw QJvZlRrot/Vzf1ps/cbay+lQBkSJCvwy9g+R172tOXM/Zr9fi9oG8Er8ZH7DZZRe /fobkmBIBwaJzy6gbJyiymr5v2yY1xeEW+xWqN95PEHo2mPo+C8T+rEVu+yIZ/kj VHIGIgdEMhPjLwkuv9+R+MT7g7jZ9DzP8w+Ql7UM8M/Z0/WG6O0OpPosELCcEUUP oX/x7x7I3PT+vV28DBM0kI/OW9U8NoPBv0JWpefGts/S8mX9iEOE6VZ94GC0PAZs VBmWqybfU4c3srFDNt4h+7UR7jabXaHs3xzusNxIxLPEOdeGfzsUTN0EbINIvYGm Tj4bmWuW+ur0gtbAcpyLkP8ZoJoac3WtZVNyT67NZ4JrixSTQuNC83JpWVZmpifs LXosxQm/DesEkgCxYWyflTdxhNjaHk7wayRG6yZJdX/YC+JcLguS35MpnK3zZK8S j7kDpqO7DBw= =e+ke -----END PGP SIGNATURE-----
_______________________________________________ GiNaC-list mailing list GiNaC-list@ginac.de https://www.cebix.net/mailman/listinfo/ginac-list
-- Mobile: 07788 872118 Blog: www.alexfb.com