help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Trouble installing GLPKMEX


From: Benjamin Webber
Subject: Re: [Help-glpk] Trouble installing GLPKMEX
Date: Wed, 06 May 2009 13:49:51 -0400
User-agent: Thunderbird 2.0.0.21 (X11/20090409)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]