[GiNaC-list] Problem with parser after updating from 1.6.1 to 1.6.2

Richard B. Kreckel kreckel at ginac.de
Tue Jan 24 22:17:49 CET 2012


Hi!

On 01/06/2012 02:57 PM, Jafar Akhundov wrote:
> After updating from GiNaC v.1.6.1 to v.1.6.2 the following code (which
> is actually taken from the tutorial) won't compile anymore.
>
> {
>    symbol x, y;
>    symtab table;
>    table["x"] = x;
>    table["y"] = y;
>    parser reader(table);
>    ex e = reader("2*x+sin(y)");
> }
>
> This is what I get :
> ginac1.cc:(.text+0x36c): undefined reference to
> `GiNaC::parser::parser(std::map<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >, GiNaC::ex,
> std::less<std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > >,
> std::allocator<std::pair<std::basic_string<char, std::char_traits<char>,
> std::allocator<char> > const, GiNaC::ex> > > const&, bool,
> std::map<std::pair<std::basic_string<char, std::char_traits<char>,
> std::allocator<char> >, unsigned int>, GiNaC::ex
> (*)(std::vector<GiNaC::ex, std::allocator<GiNaC::ex> > const&),
> GiNaC::PrototypeLess,
> std::allocator<std::pair<std::pair<std::basic_string<char,
> std::char_traits<char>, std::allocator<char> >, unsigned int> const,
> GiNaC::ex (*)(std::vector<GiNaC::ex, std::allocator<GiNaC::ex> >
> const&)> > > const&)'
>
> Anyone help or having similar issues?

No. Your example works for me. This may be an installation issue with 
the linker finding an old version of the library.

   -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>


More information about the GiNaC-list mailing list