Andrew,
Thanks for your quick response! I downloaded the alternate gplkcc.cpp
file and tried to reinstall GLPKMEX. I was thrown these errors,
---------------------------------------------------------------------
In function ‘char* strcpy(char*, const char*)’,
inlined from ‘void mexFunction(int, mxArray**, int, const
mxArray**)’ at glpkcc.cpp:732:
/usr/include/bits/string3.h:106: warning: call to char*
__builtin___strcpy_chk(char*, const char*, long unsigned int) will
always overflow destination buffer
In function ‘char* strcpy(char*, const char*)’,
inlined from ‘void mexFunction(int, mxArray**, int, const
mxArray**)’ at glpkcc.cpp:736:
/usr/include/bits/string3.h:106: warning: call to char*
__builtin___strcpy_chk(char*, const char*, long unsigned int) will
always overflow destination buffer
/usr/bin/ld: /usr/lib/libglpk.a(glpapi01.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/usr/lib/libglpk.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
mex: link of ' "glpkcc.mexa64"' failed.
??? Error using ==> mex at 213
Unable to complete successfully.
Error in ==> makeglpkmex at 111
eval(['mex ' cmd]);
Error in ==> run at 57
evalin('caller', [s ';']);
--------------------------------------------------------------------
I've also tried changing the glpkcc.cpp file as per
http://lists.gnu.org/archive/html/help-glpk/2008-04/msg00049.html to no
avail.
Thank you,
Ben
Andrew Makhorin wrote:
I am trying to install GLPKMEX for MATLAB 7.7.0 R2008b under Ubuntu
9.04. I installed GLPK through the Ubuntu repositories. I unpacked the
archive available on SourceForge to ~/MATLAB/glpkmex and ran
'makeglpkmex' from within MATLAB.
However, it seems unable to compile glpkcc.cpp. Here is the output of my
installation script,
[...]
Any help would be greatly appreciated.
See http://lists.gnu.org/archive/html/help-glpk/2009-01/msg00039.html
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk