> I am getting an error when making glpk-4.14? > > root@/usr/local/src/glpk-4.14>make > Making all in include > make[1]: Entering directory `/usr/local/src/glpk-4.14/include' > make[1]: Nothing to be done for `all'. > make[1]: Leaving directory `/usr/local/src/glpk-4.14/include' > Making all in src > make[1]: Entering directory `/usr/local/src/glpk-4.14/src' > gcc -DPACKAGE=\"GLPK\" -DVERSION=\"4.14\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 > -I. -I. -I../include -g -O2 -c glpbfx.c > gcc -DPACKAGE=\"GLPK\" -DVERSION=\"4.14\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 > -I. -I. -I../include -g -O2 -c glpgmp.c > gcc -DPACKAGE=\"GLPK\" -DVERSION=\"4.14\" -DHAVE_LIBM=1 -DSTDC_HEADERS=1 > -I. -I. -I../include -g -O2 -c glplib05.c > glplib05.c: In function `_glp_lib_get_time': > glplib05.c:94: error: `NULL' undeclared (first use in this function) > glplib05.c:94: error: (Each undeclared identifier is reported only once > glplib05.c:94: error: for each function it appears in.) > make[1]: *** [glplib05.o] Error 1 > make[1]: Leaving directory `/usr/local/src/glpk-4.14/src' > make: *** [all-recursive] Error 1
Thank you for your bug report. To fix this annoying error please insert a line in file src/glplib05 as follows: 81 #elif GLP_TM_SPEC == 1 82 83 /* GNU/Linux version */ 84 ++ #include <stddef.h> 85 #include <sys/time.h> 86 #include "glplib.h" 87 88 double lib_get_time(void) and then run make as usual. _______________________________________________ Bug-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-glpk
