[Top][All Lists]

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

Re: [Help-glpk] how to compile the glpkmex

From: hhb83
Subject: Re: [Help-glpk] how to compile the glpkmex
Date: Tue, 13 Jan 2009 06:45:36 -0800 (PST)

Andrew Makhorin wrote:
>> 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
> address@hidden

In fact, I compiled the glpkmex with Visual C++6.0, I chose 'n' on the
option 'Do you compile GLPKMEX with CYGWIN? Y/N [Y]: n
'. But I do install the cygwin on my machine, should I use it? I tried, it
the same mistakes appear, and I don't know how to setting it.
View this message in context:
Sent from the Gnu - GLPK - Help mailing list archive at

reply via email to

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