[Coin-discuss] BCP with Xpress under cygwin

Laszlo Ladanyi ladanyi at us.ibm.com
Tue Oct 10 22:00:52 EDT 2006


Hi Xinhui,

As temporary fix in your own copy just go into CoinUtils/src and modify
CoinTypes.hpp to define a 64 bit integer to something on the non-MSC_VER part
of the test. My guess is that 
    typedef long long int64_t;
will work.

Andreas, can you add a macro that figures out what type provides 64-bit
integers (and what needs to be included to get it) and in CoinTypes.hpp we
could use the result of that?

Thanks,
--Laci

On Tue, 10 Oct 2006, xinhui.zhang wrote:

> Hi, folks,
>  
>     Has anyone used BCP with xpress through cygwin under windows sytem?  I
> downloaded the tar file, unziped it, it configures OK, but when I tried to
> run make, it gives the following errors
>  
> Xinhui  <mailto:Zhang at DrZhangPC> Zhang at DrZhangPC
> /cygdrive/c/tinyos/cygwin/bin/bcp/build
> $ make
> Making all in CoinUtils
> make[1]: Entering directory
> `/cygdrive/c/tinyos/cygwin/bin/bcp/build/CoinUtils Making all in src
> make[2]: Entering directory
> `/cygdrive/c/tinyos/cygwin/bin/bcp/build/CoinUtils rc'
> if /bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
> -I`cy
> ath -w ../../../CoinUtils/src` -I../inc     -O3 -fomit-frame-pointer
> -mno-cygw
>  -pipe -DNDEBUG -pedantic-errors -Wimplicit -Wparentheses -Wreturn-type
> -Wcast
> ual -Wall -Wpointer-arith -Wwrite-strings -Wconversion   -MT
> CoinIndexedVector
> o -MD -MP -MF ".deps/CoinIndexedVector.Tpo" -c -o CoinIndexedVector.lo
> ../../.
> CoinUtils/src/CoinIndexedVector.cpp; \
> then mv -f ".deps/CoinIndexedVector.Tpo" ".deps/CoinIndexedVector.Plo"; else
> r-f ".deps/CoinIndexedVector.Tpo"; exit 1; fi
>  g++ -DHAVE_CONFIG_H -I. -Ic:\\tinyos\\cygwin\\bin\\bcp\\CoinUtils\\src
> -I../i
>  -O3 -fomit-frame-pointer -mno-cygwin -pipe -DNDEBUG -pedantic-errors
> -Wimplic
>  -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith
> -Wwrite-strings
> Wconversion -MT CoinIndexedVector.lo -MD -MP -MF .deps/CoinIndexedVector.Tpo
> -
> ../../../CoinUtils/src/CoinIndexedVector.cpp -o CoinIndexedVector.o
> ../../../CoinUtils/src/CoinIndexedVector.cpp: In member function `void
>    CoinIndexedVector::reserve(int)':
> ../../../CoinUtils/src/CoinIndexedVector.cpp:543: `int64_t' undeclared
> (first
>    use this function)
> ../../../CoinUtils/src/CoinIndexedVector.cpp:543: (Each undeclared
> identifier
>    is reported only once for each function it appears in.)
> ../../../CoinUtils/src/CoinIndexedVector.cpp:543: parse error before `='
> token
> ../../../CoinUtils/src/CoinIndexedVector.cpp:545: `iBottom' undeclared
> (first
>    use this function)
> ../../../CoinUtils/src/CoinIndexedVector.cpp: In member function `int
>    CoinIndexedVector::cleanAndPackSafe(double)':
> ../../../CoinUtils/src/CoinIndexedVector.cpp:1388: `int64_t' undeclared
> (first
>    use this function)
> ../../../CoinUtils/src/CoinIndexedVector.cpp:1388: parse error before `='
> toke
> ../../../CoinUtils/src/CoinIndexedVector.cpp:1393: `xx' undeclared (first
> use
>    this function)
> ../../../CoinUtils/src/CoinIndexedVector.cpp:1393: parse error before `>'
> toke
> make[2]: *** [CoinIndexedVector.lo] Error 1
> make[2]: Leaving directory
> `/cygdrive/c/tinyos/cygwin/bin/bcp/build/CoinUtils/
> c'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory
> `/cygdrive/c/tinyos/cygwin/bin/bcp/build/CoinUtils'
> make: *** [all-recursive] Error 1
> 
>     I am not sure what is going on wrong here.  It seems that
> CoinIndexedVector.cpp was not going through.
>  
>     Anyone has experience with BCP with xpress through cygwin under windows
> sytem, please let me know. 
>  
>     Thanks. 
>  
> 
> Xinhui Zhang, Ph.D. 
> Assistant Professor of Industrial Engineering
> Department of Biomedical, Industrial and Human Factor Engineering 
> Wright State University 
> Dayton, OH, 45435 
> 
> (937) 775-5151
> 
>  <http://www.wright.edu/~xinhui.zhang/> http://www.wright.edu/~xinhui.zhang/
> 
> "Explore Operations Research: The Science of Better at
> www.scienceofbetter.org <http://www.scienceofbetter.org/> "
> 
>  
> 




More information about the Coin-discuss mailing list