> 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'

[...]

> 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.

There is something wrong in the system settings or cygwin installation.

See, you are compiling glpkmex with cygwin while math.h used is in
D:\Program Files\Microsoft Visual Studio\VC98\INCLUDE.

Is cygwin installed on your machine?



_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to