[Coin-discuss] problems building in Cygwin on Windows XP

Ted Ralphs tkralphs at lehigh.edu
Wed Mar 2 01:45:09 EST 2005


If you are planning to use SYMPHONY, then edit the file 
COIN/SYMPHONY/Makefile and set the variable ARCH=CYGWIN. This should 
allow SYMPHONY to compile. If you don't plan to use SYMPHONY at all, you 
can also prevent it from being compiled by editing the file 
COIN/Makefiles/Makefile.location and commenting out the lines

CoinLibsDefined += COIN_Sym
CoinLibsDefined += COIN_OsiSym

In other words, change them to

#CoinLibsDefined += COIN_Sym
#CoinLibsDefined += COIN_OsiSym

This will allow the compilation to proceed without SYMPHONY. Let me know 
if you have any other questions.

Cheers,

Ted

Skylab Gupta wrote:
> Hi,
> 
> I downloaded the COIN_2005Feb28 package recently. I am working in the
> Windows XP environment (with cygwin), and my gcc version is 3.3.1. I am
> also using the LP solver CLP.
> 
> With these settings, I successfully managed to build the following
> components (using the 'make' command): Clp, Cgl, Coin and Osi.
> But now, when I try to 'make unitTest' (in the Osi folder), I get the
> following errors:
> 
> -------------------------------------
> ...
> Creating dependency OsiClpSolverInterfaceTest.d
> make[2]: Leaving directory `/cygdrive/c/COIN_2005Feb28/COIN/Osi/Test'
> make[2]: Entering directory `/cygdrive/c/COIN_2005Feb28/COIN/Osi/Test'
> 
> Compiling OsiClpSolverInterfaceTest.cpp
> 
> Compiling OsiSymSolverInterfaceTest.cpp
> In file included from
> /cygdrive/c/COIN_2005Feb28/COIN/SYMPHONY/include/symphony_api.h:20,
>                  from
> /cygdrive/c/COIN_2005Feb28/COIN/include/SymWarmStart.hpp:25,
>                  from
> /cygdrive/c/COIN_2005Feb28/COIN/include/OsiSymSolverInterface.hpp:24,
>                  from OsiSymSolverInterfaceTest.cpp:28:
> /cygdrive/c/COIN_2005Feb28/COIN/SYMPHONY/include/proto.h:36: error:
> new
>    declaration `long int random()'
> /usr/include/stdlib.h:183: error: ambiguates old declaration `int
> random()'
> make[2]: *** [CYGWIN-g/OsiSymSolverInterfaceTest.o] Error 1
> make[2]: Leaving directory `/cygdrive/c/COIN_2005Feb28/COIN/Osi/Test'
> make[1]: *** [unitTest] Error 2
> make[1]: Leaving directory `/cygdrive/c/COIN_2005Feb28/COIN/Osi/Test'
> make: *** [unitTest] Error 2
> 
> guptasr at ie39 /cygdrive/c/COIN_2005Feb28/COIN/Osi
> -------------------------------------
> 
> I am a beginner to COIN software, so any help is appreciated.
> 
> Thanks,
> Skylab Gupta.
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss


-- 
Dr. Ted Ralphs
Assistant Professor
Industrial and Systems Engineering
Lehigh University
(610)758-4784
tkralphs at lehigh.edu
www.lehigh.edu/~tkr2



More information about the Coin-discuss mailing list