> I have spent the last three days trying to install > glpk and glpk-mex on a 64 bit machine (running ubuntu) and am starting > to lose hope of actually getting it to work. > So far I have managed to install glpk and compile and run the test > file. I have also > managed to compile the mex files, but get the following error > > ??? Invalid MEX-file > '/local/lermorrissey/FBA/glpkmex-src/glpkcc.mexa64': > /local/lermorrissey/FBA/glpkmex-src/glpkcc.mexa64: undefined symbol: > _glp_lpx_intopt. > > This was after managing to work around the following error message: > > home/fcamas/matlab704/bin/mex -I/usr/include/glpk.h -I > /home/fcamas/matlab704/extern/include/ -I > /home/ermorrissey/fba/glpk-4.15/include/glplib.h > /home/ermorrissey/fba/glpkmex/glpkcc.cpp /usr/local/lib/libglpk.a > /home/ermorrissey/fba/glpkmex/glpkcc.cpp:36:20: glplib.h: No such file > or directory > /home/ermorrissey/fba/glpkmex/glpkcc.cpp: In function `int glpk(int, > int, int, > double*, int, int*, int*, double*, double*, char*, int*, double*, int*, > double*, int*, int, int, int, double*, double*, double*, double*, > double*, > double*, double*)': > /home/ermorrissey/fba/glpkmex/glpkcc.cpp:137: error: `lib_set_fault_hook' > undeclared (first use this function) > /home/ermorrissey/fba/glpkmex/glpkcc.cpp:137: error: (Each undeclared > identifier is reported only once for each function it appears in.) > /home/ermorrissey/fba/glpkmex/glpkcc.cpp:140: error: `lib_set_print_hook' > undeclared (first use this function) > /home/ermorrissey/fba/glpkmex/glpkcc.cpp:272: error: `insist' undeclared > (first > use this function) > /home/ermorrissey/fba/glpkmex/glpkcc.cpp:337: error: `lib_env_ptr' > undeclared > (first use this function) > > mex: compile of '/home/ermorrissey/fba/glpkmex/glpkcc.cpp' failed. > > What can I do?
The errors appear due to changes in recent versions of glpk where using non-api routines is not allowed. You can try to contact Nicolo Giorgetti <[EMAIL PROTECTED]>, who is the author of glpkmex. However, if you post me the file 'glpkcc.cpp', I could make neccesary changes to fix the errors. Andrew Makhorin _______________________________________________ Bug-glpk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-glpk
