[Coin-symphony] Building using cygwin and eclipse

Michael O'Sullivan michael.osullivan at auckland.ac.nz
Sat Apr 14 20:38:27 EDT 2007


Hi everyone,

I am struggling trying to build Symphony on Windows XP using cygwin and 
eclipse. I have got past the make version 3.81 fix, but had problems 
with ieeefp.h and isnan. I managed to get past this error by using 
./configure --enable-doscompile, but now I get an error regarding the 
random functions:

g++ -DHAVE_CONFIG_H -I. -I. -I../inc 
-Ic:\\COIN\\SYMPHONY\\SYMPHONY\\include -I
c:\\COIN\\SYMPHONY\\Clp\\src -Ic:\\COIN\\SYMPHONY\\Osi\\src\\OsiClp 
-Ic:\\COIN\\
SYMPHONY\\Clp\\inc -D__OSI_CLP__ -Ic:\\COIN\\SYMPHONY\\Cgl\\src 
-Ic:\\COIN\\SYMP
HONY\\Cgl\\src\\CglClique 
-Ic:\\COIN\\SYMPHONY\\Cgl\\src\\CglDuplicateRow -Ic:\\
COIN\\SYMPHONY\\Cgl\\src\\CglFlowCover 
-Ic:\\COIN\\SYMPHONY\\Cgl\\src\\CglGomory
 -Ic:\\COIN\\SYMPHONY\\Cgl\\src\\CglKnapsackCover 
-Ic:\\COIN\\SYMPHONY\\Cgl\\src
\\CglLiftAndProject 
-Ic:\\COIN\\SYMPHONY\\Cgl\\src\\CglMixedIntegerRounding -Ic:
\\COIN\\SYMPHONY\\Cgl\\src\\CglMixedIntegerRounding2 
-Ic:\\COIN\\SYMPHONY\\Cgl\\
src\\CglOddHole -Ic:\\COIN\\SYMPHONY\\Cgl\\src\\CglPreProcess 
-Ic:\\COIN\\SYMPHO
NY\\Cgl\\src\\CglProbing -Ic:\\COIN\\SYMPHONY\\Cgl\\src\\CglRedSplit 
-Ic:\\COIN\
\SYMPHONY\\Cgl\\src\\CglSimpleRounding 
-Ic:\\COIN\\SYMPHONY\\Cgl\\src\\CglTwomir
 -Ic:\\COIN\\SYMPHONY\\CoinUtils\\src 
-Ic:\\COIN\\SYMPHONY\\CoinUtils\\inc -Ic:\
\COIN\\SYMPHONY\\Osi\\src -Ic:\\COIN\\SYMPHONY\\Osi\\inc 
-Ic:\\COIN\\SYMPHONY\\C
gl\\inc -DUSE_CGL_CUTS -DHAS_RANDOM -DHAS_SRANDOM -D__NONE__ -D__CYGWIN 
-DCOMPIL
E_IN_CG -DCOMPILE_IN_CP -DCOMPILE_IN_LP -DCOMPILE_IN_TM -mno-cygwin -O3 
-fomit-f
rame-pointer -mno-cygwin -pipe -DNDEBUG -pedantic-errors -Wimplicit 
-Wparenthese
s -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings 
-Wconversion -
Wno-unknown-pragmas -Wno-write-strings -Wno-sign-compare -Wno-cast-qual 
-MT libS
ym_la-tm_func.lo -MD -MP -MF .deps/libSym_la-tm_func.Tpo -c 
TreeManager/tm_func.
c -o libSym_la-tm_func.o
TreeManager/tm_func.c: In function `int tm_initialize(tm_prob*, 
base_desc*, node
_desc*)':
TreeManager/tm_func.c:141: error: `srandom' undeclared (first use this 
function)

TreeManager/tm_func.c:141: error: (Each undeclared identifier is 
reported only o
nce for each function it appears in.)
TreeManager/tm_func.c: In function `char shall_we_dive(tm_prob*, double)':
TreeManager/tm_func.c:1355: error: `random' undeclared (first use this 
function)

TreeManager/tm_func.c: In function `void sym_catch_c(int)':
TreeManager/tm_func.c:3161: error: `sigfillset' undeclared (first use 
this funct
ion)
TreeManager/tm_func.c:3162: error: `SIG_SETMASK' undeclared (first use 
this func
tion)
TreeManager/tm_func.c:3162: error: `sigprocmask' undeclared (first use 
this func
tion)
make[3]: *** [libSym_la-tm_func.lo] Error 1
make[3]: Leaving directory `/cygdrive/c/COIN/SYMPHONY/SYMPHONY/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/COIN/SYMPHONY/SYMPHONY/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/COIN/SYMPHONY/SYMPHONY'
make: *** [all-recursive] Error 1

I have been trying to run make from inside eclipse, but also from the 
cygwin command line. Here is the result of g++ -v:

$ g++ -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: 
/usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --ver
bose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc 
--libdir=/usr/lib --libe
xecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info 
--enable-langu
ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls 
--without-included-gettext --
enable-version-specific-runtime-libs --without-x --enable-libgcj 
--disable-java-
awt --with-system-zlib --enable-interpreter --disable-libgcj-debug 
--enable-thre
ads=posix --enable-java-gc=boehm --disable-win32-registry 
--enable-sjlj-exceptio
ns --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

I downloaded cygwin last week and updated Symphony from the SVN yesterday:

https://projects.coin-or.org/svn/SYMPHONY/stable/5.1

I have been successfully running Symphony from inside Visual Studio 2005 
(and 2003), but want to switch to eclipse as I am going to start using 
Bcp also. Has anyone successfully built symphony.exe using cygwin and 
eclipse? Can anyone give me any pointers on how to proceed?

Thanks, Mike



More information about the Symphony mailing list