help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Trouble installing GLPKMEX


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

Hello all,

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,

-------------------------------------------------------------------------

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

Warning: You are using gcc version "4.3.3-5ubuntu4)". The earliest gcc version supported with mex is "4.0.0". The latest version tested for use with mex is "4.2.0".
         To download a different version of gcc, visit http://gcc.gnu.org

glpkcc.cpp:37:22: error: glplib.h: No such file or directory
glpkcc.cpp: In function ‘int glpk(int, int, int, double*, int, int*, int*, double*, double*, char*, int*, double*, int*, double*, int*, int, int, int, char*, char*, double*, double*, double*, double*, double*, double*, double*)’:
glpkcc.cpp:314: error: ‘xassert’ was not declared in this scope
glpkcc.cpp:374: error: ‘glp_ulong’ was not declared in this scope
glpkcc.cpp:374: error: expected `;' before ‘tpeak’
glpkcc.cpp:375: error: ‘tpeak’ was not declared in this scope
glpkcc.cpp:375: error: ‘lib_mem_usage’ was not declared in this scope

    mex: compile of ' "glpkcc.cpp"' 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 ';']);

------------------------------------------------------------------------


Any help would be greatly appreciated.

Thank you,

Ben




reply via email to

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