[Coin-discuss] RE: problem with OSI and CPLEX on MinGW+MSYS
Weiguo Liu
weiguo at yahoo-inc.com
Wed May 23 13:30:29 EDT 2007
Hi, Michal,
I had similar problem with Xpress lib in Linux as well.
The problem goes away when I specify the particular lib for with_xpress_lib
parameter. In your case, you may want to try the following:
./configure -C, with the following options in a config.site file:
with_cplex_incdir=/g/Cplex90/include/ilcplex
with_cplex_lib=/g/Cplex90/lib/msvc6/stat_mda/cplex90.lib
Note in my case it is libxpres.so i.e. the full display name of the lib ---
I'm not sure yours is cplex90.lib or libcplex90.lib?
Weiguo
----------------------------------------------------------------------
Message: 1
Date: Wed, 23 May 2007 15:30:18 +0200
From: Michal Kaut <mail at michalkaut.net>
Subject: [Coin-discuss] problem with OSI and CPLEX on MinGW+MSYS
To: coin-discuss at list.coin-or.org
Message-ID: <465441EA.604 at michalkaut.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello,
I have had a problem with the OSI configure script, when using Cplex 9.0
library, on Windows with MinGW+MSYS. I managed to localize the problem
and find the way around it, but I still do not know what the problem is
and how to correct it - and, most importantly, whether it is a problem
with my GCC/MinGW/MSYS configuration or a general issue.
Anyway, I just thought that someone else might find the "solution" useful...
1. The problem
I run ./configure -C, with the following options in a config.site file:
with_cplex_incdir=/g/Cplex90/include/ilcplex
with_cplex_lib="-L/g/Cplex90/lib/msvc6/stat_mda -lcplex90"
The script stops with an error; The last few lines of output are:
checking if user provides library for Cplex... yes
checking for /g/Cplex90/include/ilcplex/cplex.h... yes
checking whether symbol CPXgetstat is available with CPX... no
configure: error: Cannot find symbol CPXgetstat with CPX
configure: error: /bin/sh './configure' failed for Osi
2. Localizing the problem
The error comes from configure in the Osi directory, from testing the
CPLEX library. For this test, configure creates a file conftest.c, which
won't link, causing the error. The error message from the linker is
"conftest.c: undefined reference to `CPXgetstat'".
I tried to build the file manually, with the same result.
3. Way around the problem
It turns out that the configure script configures everything OK, i.e.
the problem is in the test file conftest.c, not in the configuration.
The "solution" is therefore to skip the test, by supplying an option
"--disable-cplex-libcheck" to the configure script.
This way, both the 'configure', 'make' and 'make test' works without
further problems, as do the Osi examples...
Regards,
Michal Kaut
------------------------------
Message: 2
Date: Wed, 23 May 2007 11:15:30 -0400 (EDT)
From: Andreas Waechter <andreasw at watson.ibm.com>
Subject: Re: [Coin-discuss] problem with OSI and CPLEX on MinGW+MSYS
To: Discussions about open source software for Operations Research
<coin-discuss at list.coin-or.org>
Message-ID: <Pine.A41.4.61.0705231113580.467002 at bigopt.watson.ibm.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Hi Michal,
Great, thanks for summarizing your experience and hints.
It would be really great if you could put this onto the CoinHelp wiki
pages. We have a section there for user comments; yours seem to fit
nicely in the "Comments and Tricks for Configuration" part. The website
is:
https://projects.coin-or.org/CoinHelp/wiki/user-comments
Thanks,
Andreas
On Wed, 23 May 2007, Michal Kaut wrote:
> Hello,
>
> I have had a problem with the OSI configure script, when using Cplex 9.0
> library, on Windows with MinGW+MSYS. I managed to localize the problem and
> find the way around it, but I still do not know what the problem is and
how
> to correct it - and, most importantly, whether it is a problem with my
> GCC/MinGW/MSYS configuration or a general issue.
>
> Anyway, I just thought that someone else might find the "solution"
useful...
>
>
> 1. The problem
> I run ./configure -C, with the following options in a config.site file:
> with_cplex_incdir=/g/Cplex90/include/ilcplex
> with_cplex_lib="-L/g/Cplex90/lib/msvc6/stat_mda -lcplex90"
> The script stops with an error; The last few lines of output are:
> checking if user provides library for Cplex... yes
> checking for /g/Cplex90/include/ilcplex/cplex.h... yes
> checking whether symbol CPXgetstat is available with CPX... no
> configure: error: Cannot find symbol CPXgetstat with CPX
> configure: error: /bin/sh './configure' failed for Osi
>
> 2. Localizing the problem
> The error comes from configure in the Osi directory, from testing the
CPLEX
> library. For this test, configure creates a file conftest.c, which won't
> link, causing the error. The error message from the linker is
> "conftest.c: undefined reference to `CPXgetstat'".
> I tried to build the file manually, with the same result.
>
> 3. Way around the problem
> It turns out that the configure script configures everything OK, i.e. the
> problem is in the test file conftest.c, not in the configuration.
> The "solution" is therefore to skip the test, by supplying an option
> "--disable-cplex-libcheck" to the configure script.
> This way, both the 'configure', 'make' and 'make test' works without
further
> problems, as do the Osi examples...
>
>
> Regards,
> Michal Kaut
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
>
------------------------------
_______________________________________________
Coin-discuss mailing list
Coin-discuss at list.coin-or.org
http://list.coin-or.org/mailman/listinfo/coin-discuss
End of Coin-discuss Digest, Vol 31, Issue 14
********************************************
More information about the Coin-discuss
mailing list