[GiNaC-list] GiNaC versus GCC 4.2 [Was: [patch] fix template template declarations...]

Richard B. Kreckel kreckel at ginac.de
Thu May 11 22:35:26 CEST 2006


Sheplyakov Alexei wrote:

>Yes. There also the same error in 
>check/exam_inifcns_nstdsums.cpp:inifcns_test_S().
>  
>

That test passes here.

>Here is the simplest code which fails in the similar way (exception
>due to the parser error):
>
>#include <iostream>
>#include <ginac/ginac.h>
>using namespace std;
>using namespace GiNaC;
>
>int main(int argc, char** argv)
>{
>	ex e = ex("-1 + 2*I", symbol());
>	cout << e << endl;
>	return 0;
>}
>
>The error message is:
>Terminate called after throwing an instance of 'std::runtime_error'
>  what():  syntax error, unexpected T_EOF, expecting ']' or ',' at
>  
>

I tried this, too, based on your earlier email.  But it works for me.  
Does shared/static lib and optimization flags make a difference for you?

cheers
  -richy.

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



More information about the GiNaC-list mailing list