> When I try to compile a C program using glpk functions, I get the the > following error at the linker. I've checked the include path and it > contains glpk.h and the lib contains libglpk. I'm compiling on a > 64-bit machine running ubuntu 11.10 > > > /tmp/ccPR8ZKY.o: In function `main': > scheduler_main.c:(.text+0x10): undefined reference to > `glp_create_prob' > scheduler_main.c:(.text+0x2b): undefined reference to > `glp_set_prob_name' > scheduler_main.c:(.text+0x3f): undefined reference to > `glp_set_obj_name' > > [...]
Probably you forgot to specify the glpk object library for the linker, i.e. 'gcc ... -lglpk ...' . _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
