<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&#39;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=&quot;$TARGET-gcc -static-libgcc&quot;<br>
export CXX=&quot;$TARGET-g++ -static-libgcc -static-libstdc++&quot;<br>./configure --target=&quot;$TARGET&quot; --host=&quot;$TARGET&quot;<br>make<div><br></div><div>Then the make fail with the following error:</div><div>
<div>CoinOslFactorization.cpp: In function &#39;void* clp_align(void*)&#39;:</div><div>CoinOslFactorization.cpp:901:5: error: &#39;int64_t&#39; was not declared in this scope</div><div>CoinOslFactorization.cpp:901:15: error: expected &#39;;&#39; before &#39;k&#39;</div>
<div>CoinOslFactorization.cpp:902:10: error: &#39;k&#39; was not declared in this scope</div><div>CoinFinite.hpp: At global scope:</div><div>CoinFinite.hpp:18:14: warning: &#39;COIN_DBL_MAX&#39; defined but not used [-Wunused-variable]</div>
<div>CoinFinite.hpp:20:14: warning: &#39;COIN_INT_MAX_AS_DOUBLE&#39; 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&#39;</div>
<div>make[2]: *** [all] Error 2</div><div>make[2]: Leaving directory `/home/debian/coin-cbc-2.8/CoinUtils/src&#39;</div><div>make[1]: *** [all-recursive] Error 1</div><div>make[1]: Leaving directory `/home/debian/coin-cbc-2.8/CoinUtils&#39;</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&#39;m no c++ programmer so I can&#39;t fix it by my self.</div>
<div><br></div><div>Thanks</div><div><br></div>--<br>Patrik Dufresne</div></div>