mingw et pari
Publié : mer. août 02, 2017 3:52 pm
Salut,
j'essaye de compiler giac avec
sans pari ca marche (modulo quelques problemes avec tms et times virés dans icas.cc:
en revanche avec pari j'ai une confusion:
j'essaye de compiler giac avec
Code : Tout sélectionner
./configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32
Code : Tout sélectionner
--- /home/fred/tmp/giac-1.2.3/src/icas.cc 2017-06-27 20:22:06.000000000 +0200
+++ giac-1.2.3/src/icas.cc 2017-08-02 13:08:22.837183739 +0200
@@ -1501,7 +1501,7 @@
}
#ifdef HAVE_LIBREADLINE
if (ARGC==1){
- struct tms start, end;
+ //fred struct tms start, end;
using_history();
cout << "Welcome to giac readline interface" << endl;
cout << "(c) 2001,2016 B. Parisse & others" << endl;
@@ -1561,12 +1561,12 @@
#ifdef __APPLE__
unsigned startc=clock();
#endif
- times(&start);
+ //times(&start);
xcas::icas_eval(gq,ge,reading_file,filename,contextptr);
#ifdef __APPLE_
startc=clock()-startc;
#endif
- times(&end);
+ //times(&end);
giac::history_in(contextptr).push_back(gq);
giac::history_out(contextptr).push_back(ge);
// 2-d plot?
@@ -1592,7 +1592,7 @@
#ifdef __APPLE__
cerr << "// dclock1 " << double(startc)/CLOCKS_PER_SEC << endl;
#endif
- cerr << "// Time " << giac::delta_tms(start,end) << endl;
+ //cerr << "// Time " << giac::delta_tms(start,end) << endl;
}
#ifdef HAVE_EQASCII
struct Tgraph *graph=(Tgraph *)malloc(sizeof(struct Tgraph));
@@ -1665,8 +1665,8 @@
gettimeofday(&tt,0);
giac::gen et((int) tt.tv_sec);
string st(et.print(contextptr));
- struct tms start, end,f1,f2;
- times(&start);
+ //struct tms start, end,f1,f2;
+ //times(&start);
f2=start;
#endif
//xcas_mode(contextptr)=1;
Code : Tout sélectionner
pari.cc: In function 'long int* giac::mat2GEN(const giac::gen&, const vecteur&, const giac::context*)':
pari.cc:490:28: error: cannot convert 'GEN {aka long long int*}' to 'giac::GEN {aka long int*}' in initialization
GEN res=cgetg(n+1,t_MAT);