Hi Andrew, I have installed glpk-4.28 and replaced replace glp_ulong by glp_long in file glpkcc.cpp but 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. Do you know what is the problem? Regards, Mauricio Andrew Makhorin wrote: > >> I have installed glpk-4.28 and cant seem to install glpkmex in >> MATLAB and i keep getting 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 #39; Giorgetti. > >> > >> Do you want to use graphic installer? Y/N [Y]: N > >> GLPK path: /usr/local > >> GLPK path... /usr/local > >> GLPK include files...OK > >> GLPK library file...OK > >> glpkcc.cpp: In function #39;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*) #39;: > >> glpkcc.cpp:374: error: #39;glp_ulong #39; was not declared in this scope > >> glpkcc.cpp:374: error: expected `; #39; before #39;tpeak #39; > >> glpkcc.cpp:375: error: #39;tpeak #39; was not declared in this scope > >> mex: compile of #39;glpkcc.cpp #39; failed. > >> ??? Error using ==> mex at 208 > >> Unable to complete successfully. > >> Error in ==> makeglpkmex at 111 > >> eval([ #39;mex #39; cmd]); > >> Please advise...Thank you! > > To fix the problem please replace glp_ulong by glp_long in file > glpkcc.cpp, line 374. > > > > > _______________________________________________ > Help-glpk mailing list > Help-glpk@gnu.org > http://lists.gnu.org/mailman/listinfo/help-glpk > > -- View this message in context: http://www.nabble.com/Problem-installing-GLPKMEX-tp16914536p17255581.html Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com. _______________________________________________ Help-glpk mailing list Help-glpk@gnu.org http://lists.gnu.org/mailman/listinfo/help-glpk