The package wouldn #39;t compile due to missing include file in glplib05.c halting with the following error message. NULL undeclared due to missing include file. Works fine if <stddef.h> is included in the appropriate branches of #if ... #elif...#else (windows branch untested)
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/src/glpk-4.14/src #39; make: *** [all-recursive] Error 1 Works fine if <stddef.h> is included in the appropriate branches of #if ... #elif...#else (windows branch untested). The following patch correcrts this (also included as attachment) ------------------------start------------------------ 84a85 > #include <stddef.h> 102a104 > #include <stddef.h > -------------------------end------------------------- Hope this helps. JonThe package wouldn't compile due to missing include file in glplib05.c halting with the
following error message. NULL undeclared due to missing include file. Works fine if
<stddef.h> is included in the appropriate branches of #if ... #elif...#else (windows branch
untested)
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/src/glpk-4.14/src'
make: *** [all-recursive] Error 1
Works fine if <stddef.h> is included in the appropriate branches of #if ... #elif...#else (windows branch
untested). The following patch correcrts this (also included as attachment)
------------------------start------------------------
84a85
> #include <stddef.h>
102a104
> #include <stddef.h >
-------------------------end-------------------------
Hope this helps.
Jon
patchfile
Description: Binary data
_______________________________________________ Bug-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-glpk
