[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] Re: glpkmex
From: |
Andrew Makhorin |
Subject: |
[Help-glpk] Re: glpkmex |
Date: |
Thu, 12 Mar 2009 19:50:57 +0300 |
> I've been trying to install glpkmex for matlab, on ubuntu. I've got
> glpk 4.29 installed, and glpkmex 2.4. I manually fixed the errors
> about glp_long and glp_mem_usage, commented the line about xassert and
> I still get this error:
>>> makeglpkmex
> GLPKMEX - A Matlab interface for GLPK. Script installer.
> Version 2.4 compatible with GLPK 4.20 (or higher)
> (C) 2001-2007, Nicolo' Giorgetti.
> Do you want to use graphic installer? Y/N [Y]: N
> GLPK path: /usr
> GLPK path... /usr
> GLPK include files...OK
> GLPK library file...OK
> -I/usr/include glpkcc.cpp /usr/lib/libglpk.aIn function ‘char*
> strcpy(char*, const char*)’,
> inlined from ‘void mexFunction(int, mxArray**, int, const
> mxArray**)’ at glpkcc.cpp:707:
> /usr/include/bits/string3.h:106: warning: call to char*
> __builtin___strcpy_chk(char*, const char*, 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:711:
> /usr/include/bits/string3.h:106: warning: call to char*
> __builtin___strcpy_chk(char*, const char*, unsigned int) will always
> overflow destination buffer
> Any hints?
You can try using a patched version of glpkcc which conforms to recent
glpk versions. See attachment to the following message:
http://lists.gnu.org/archive/html/help-glpk/2009-01/msg00039.html