Olivier Ramare on Sat, 12 May 2007 12:08:37 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
gp2c , pari library and st99 |
Dear all, I need the compilation option -st99 to be able to use the linear programming solver lpsolve (otherwise, it does not know long long, or so it says :-(). My understanding of C code is limited, but the code produced by gp2c does not meet this requirement, or maybe it is the whole pari library that does not -- Or maybe I could change the standard in between? Any help appreciated!! Best, Amities, Olivier ---------------------------------------------------------------------------------------------------- Extract of output from command : gcc -Wall -pedantic BTRSP.c -o BTRSP -std=c99 -lm -llpsolve55 -I/usr/local/share/lp_solve/ In file included from /usr/include/pari/pari.h:70, from LocalBTRSP.c:2, from BTRSP.c:97: /usr/include/pari/paristio.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pari_sp' /usr/include/pari/paristio.h:27: error: expected specifier-qualifier-list before 'pari_sp' /usr/include/pari/paristio.h:33: error: expected specifier-qualifier-list before 'ulong' /usr/include/pari/paristio.h:64: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'logstyle' /usr/include/pari/paristio.h:76: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'avma' etc ------------------------------------------------------------------------------------------------------- Extract of output from command : gcc -Wall -pedantic BTRSP.c -o BTRSP -lm -llpsolve55 -I/usr/local/share/lp_solve/ In file included from BTRSP.c:10: /usr/local/share/lp_solve/lp_lib.h:888: warning: ISO C90 does not support 'long long' /usr/local/share/lp_solve/lp_lib.h:889: warning: ISO C90 does not support 'long long' /usr/local/share/lp_solve/lp_lib.h:1403: warning: ISO C90 does not support 'long long' etc --------------------------------------------------------------------------------------------------------