[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Problems installing glpkmex with glpk 4.28
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] Problems installing glpkmex with glpk 4.28 |
Date: |
Fri, 16 May 2008 12:19:37 +0400 |
> I have installed glpk-4.28 and replaced replace glp_ulong by glp_long in
> file
> glpkcc.cpp but when I run makeglpkmex Matlab send the next message:
> 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: c:\matlab\r2007b\work\glpk
> GLPK path... c:\matlab\r2007b\work\glpk
> GLPK include files...OK
> Warning: Specified directory does not contain GLPK libglpk.a
> library!
> Specify full GLPK libglpk.a path:
> c:\matlab\r2007b\work\glpk\src\.libs
> GLPK library file...OK
> Do you compile GLPKMEX with CYGWIN? Y/N [Y]: n
> glpkcc.cpp
> glpkcc.cpp(375) : error C2664: '_glp_lib_mem_usage' : cannot convert
> parameter 4 from 'glp_long *' to 'xlong_t *'
> Types pointed to are unrelated; conversion requires
> reinterpret_cast, C-style cast or function-style cast
> C:\MATLAB\R2007B\BIN\MEX.PL: Error: Compile of 'glpkcc.cpp' failed.
The routine lib_mem_usage is not available on api level and should
not be used in the application program. There is glpk api routine,
glp_mem_usage, which performs the same operation.
To fix the error 'lib_mem_usage' should be changed to 'glp_mem_usage'
in file glpkcc.cpp, line 375.