[Cbc] compiler error with gcc4 in cygwin 1.7.9

Anyster foranyster at gmail.com
Wed Oct 26 14:56:10 EDT 2011


Hi Stefan,

Thank you very much for your help! By including the head file, everything
works fine. Thank you.

Just curious, is it a problem with new version of cygwin or the cbc source
code? Shall I submit a ticket to cbct? Thank you.

Best regards,
Anyster

On Tue, Oct 25, 2011 at 4:22 PM, Stefan Vigerske
<stefan at math.hu-berlin.de>wrote:

> 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<http://list.coin-or.org/mailman/listinfo/cbc>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20111026/1a0b3be3/attachment.html>


More information about the Cbc mailing list