<div dir="ltr">Hi,<br><br>Anybody is successful to cross-compile coin-cbc using mingw32 from a linux computer? On debian wheezy x86_64, I've done the following:<br><br>sudo apt-get install subversion build-essential gcc-mingw-w64 mingw-w64 mingw32<br>
svn co <a href="https://projects.coin-or.org/svn/Cbc/stable/2.8">https://projects.coin-or.org/svn/Cbc/stable/2.8</a> coin-cbc-2.8<br>cd coin-cbc-2.8<br>export TARGET=i686-w64-mingw32<br>export CC="$TARGET-gcc -static-libgcc"<br>
export CXX="$TARGET-g++ -static-libgcc -static-libstdc++"<br>./configure --target="$TARGET" --host="$TARGET"<br>make<div><br></div><div>Then the make fail with the following error:</div><div>
<div>CoinOslFactorization.cpp: In function 'void* clp_align(void*)':</div><div>CoinOslFactorization.cpp:901:5: error: 'int64_t' was not declared in this scope</div><div>CoinOslFactorization.cpp:901:15: error: expected ';' before 'k'</div>
<div>CoinOslFactorization.cpp:902:10: error: 'k' was not declared in this scope</div><div>CoinFinite.hpp: At global scope:</div><div>CoinFinite.hpp:18:14: warning: 'COIN_DBL_MAX' defined but not used [-Wunused-variable]</div>
<div>CoinFinite.hpp:20:14: warning: 'COIN_INT_MAX_AS_DOUBLE' defined but not used [-Wunused-variable]</div><div>make[3]: *** [CoinOslFactorization.lo] Error 1</div><div>make[3]: Leaving directory `/home/debian/coin-cbc-2.8/CoinUtils/src'</div>
<div>make[2]: *** [all] Error 2</div><div>make[2]: Leaving directory `/home/debian/coin-cbc-2.8/CoinUtils/src'</div><div>make[1]: *** [all-recursive] Error 1</div><div>make[1]: Leaving directory `/home/debian/coin-cbc-2.8/CoinUtils'</div>
<div>make: *** [all-recursive] Error 1</div><div><br></div><div>Seams to be related to the declaration of CoinInt64. Any tips ? My guess their is a flag not properly sets to declare int64_t as longlong, but I'm no c++ programmer so I can't fix it by my self.</div>
<div><br></div><div>Thanks</div><div><br></div>--<br>Patrik Dufresne</div></div>