help-glpk
[Top][All Lists]
Advanced

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

[Help-glpk] Re: [Bug-glpk] Variables defined more than once


From: Nigel Galloway
Subject: [Help-glpk] Re: [Bug-glpk] Variables defined more than once
Date: Thu, 07 Dec 2006 18:55:33 +0100


> ----- Original Message -----
> From: "Andrew Makhorin"
> To: "Nigel Galloway"
> Subject: Re: [Bug-glpk] Variables defined more than once
> Date: Thu, 7 Dec 2006 19:42:36 +0300
>
>
> > Perhaps not a bug, but the following constatnts are defined twice to the
> > same values in glplpx.h with annoying consequences when I try to bind to
> > ruby.
> >
> > address@hidden ruby]$ ruby sample.rb ./nigelzGLPK.so: warning:
> > already initialized constant LPX_FR
> > ./nigelzGLPK.so: warning: already initialized constant LPX_LO
> > ./nigelzGLPK.so: warning: already initialized constant LPX_UP
> > ./nigelzGLPK.so: warning: already initialized constant LPX_DB
> > ./nigelzGLPK.so: warning: already initialized constant LPX_FX
> > ./nigelzGLPK.so: warning: already initialized constant LPX_BS
> > ./nigelzGLPK.so: warning: already initialized constant LPX_NL
> > ./nigelzGLPK.so: warning: already initialized constant LPX_NU
> > ./nigelzGLPK.so: warning: already initialized constant LPX_NF
> > ./nigelzGLPK.so: warning: already initialized constant LPX_NS
> > * 0: objval = 0.000000000e+00 infeas = 0.000000000e+00 (0)
> > * 2: objval = 7.333333333e+02 infeas = 0.000000000e+00 (0)
> > OPTIMAL SOLUTION FOUND
>
> Thank you for your report. However, I do not completely understand
> the situation, because those are preprocessor variables which exist
> only during compilation. I think there must be a way to disable such
> warning messages.

>
Of course as the orignal report said:

If I delete the second definition and compile again the problem seems
to be fixed.

address@hidden ruby]$ ruby sample.rb
*     0:   objval =   0.000000000e+00   infeas =   0.000000000e+00 (0)
*     2:   objval =   7.333333333e+02   infeas =   0.000000000e+00 (0)
OPTIMAL SOLUTION FOUND

Z = 733.333333333333; x1 = 33.3333333333333; x2 = 66.6666666666667; x3 = 0.0

The point is that this header file does not only exist during the compilation but is a part of the installed system providing an external view of the compiled system.


--

_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com


Powered by Outblaze
reply via email to

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