Hi, when i compile the makeglpkmex.m, there always be the following mistakes:
Do you want to use graphic installer? Y/N [Y]: y
GLPK path... D:\MATLAB6p5p1\work\glpk-4.35
GLPK include files...OK
GLPK library file...OK
Do you compile GLPKMEX with CYGWIN? Y/N [Y]: n
glpkcc.cpp
D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\math.h(514) : error
C2894: templates cannot be declared to have 'C' linkage
glpkcc.cpp(187) : error C2374: 'i' : redefinition; multiple initialization
glpkcc.cpp(159) : see declaration of 'i'
glpkcc.cpp(286) : error C2374: 'i' : redefinition; multiple initialization
glpkcc.cpp(283) : see declaration of 'i'
glpkcc.cpp(359) : error C2374: 'i' : redefinition; multiple initialization
glpkcc.cpp(351) : see declaration of 'i'
glpkcc.cpp(365) : error C2374: 'i' : redefinition; multiple initialization
glpkcc.cpp(351) : see declaration of 'i'
glpkcc.cpp(540) : error C2374: 'i' : redefinition; multiple initialization
glpkcc.cpp(527) : see declaration of 'i'
glpkcc.cpp(573) : error C2374: 'i' : redefinition; multiple initialization
glpkcc.cpp(527) : see declaration of 'i'
D:\MATLAB6P5P1\BIN\WIN32\MEX.PL: Error: Compile of 'glpkcc.cpp' failed.
Is there anybody can tell me how to handle them? especially the 'math.h', it
seems that it all because of the 'extern "C" {', but all the effort I took
lost.
thank you very much!
--
View this message in context:
http://www.nabble.com/how-to-compile-the-glpkmex-tp21436441p21436441.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk