[Cbc] compiler error with gcc4 in cygwin 1.7.9

Stefan Vigerske stefan at math.hu-berlin.de
Tue Oct 25 17:22:28 EDT 2011


Hi,

how does it change if you add an
#include <cstdio>
at the top of CoinParam.hpp ?

Stefan

> Hi,
>
> I use windows XP, and I've already used the revised-3.8.1-version make.exe
> in cygwin. When compiling cbc 2.7 stable version (obtained by svn) in cygwin
> 1.7.9 with gcc4, I got the following error message:
>
> In file included from ../../../CoinUtils/src/CoinParam.cpp:11:0:
> ../../../CoinUtils/src/CoinParam.hpp:452:20: error: variable or field
> 'setInputSrc' declared void
> ../../../CoinUtils/src/CoinParam.hpp:452:20: error: 'FILE' was not declared
> in this scope
> ../../../CoinUtils/src/CoinParam.hpp:452:26: error: 'src' was not declared
> in this scope
> make[3]: *** [CoinParam.lo] Error 1
> make[3]: Leaving directory `/cygdrive/c/Brooks/coin-Cbc/build/CoinUtils/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/cygdrive/c/Brooks/coin-Cbc/build/CoinUtils/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/cygdrive/c/Brooks/coin-Cbc/build/CoinUtils'
> make: *** [all-recursive] Error 1
>
> First of all, I don't know why "declared void" would be an error, and then
> after I commented that line and compile again, I got some other errors later
> in the process. I've been bothered by this problem for two days, and google
> doesn't help. Can anyone give me some help here? Thank you very much for
> your help!
>
> Best regards,
> Anyster
>
>
>
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc



More information about the Cbc mailing list