[FlopCpp] compiling FlopC++ on cygwin: Error

Stuart Mitchell s.mitchell at auckland.ac.nz
Sun Feb 18 15:55:32 EST 2007


Have you got the latest code as they do say its fixed now?

The bug page was https://projects.coin-or.org/Osi/ticket/16

And sorry the command line should be

./configure -C --enable-doscompile

Stu

Vishy Jeet wrote:
> Sorry to pick up on an old thread. I can successfully run ./configure
> command without any error, but my cygwin shell doesn't accept
> "--enabledoscompile" argument.
>
> I am still facing the same problem with *make* step, I can't compile the
> source code and get the following error:
>
> cpp -o MP_constraint.o
> In file included from c:/coin-FlopCpp/CoinUtils/src/CoinFinite.hpp:32,
>                 from
> c:/coin-FlopCpp/CoinUtils/src/CoinMessageHandler.hpp:15,
>                 from c:/coin-FlopCpp/Osi/src/OsiSolverInterface.hpp:9,
>                 from MP_constraint.cpp:14:
> c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:34: warning: ignoring #pragma 
> ident
> c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:60: error: expected identifier 
> before
> numeric constant
> c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:60: error: expected `}' before
> numeric constant
> c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:60: error: expected unqualified-id
> before numeric constant
> c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:60: error: expected `,' or `;' 
> before
> numeric constant
> c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:70: error: declaration does not
> declare anything
> c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:73: error: new declaration 
> `fpclass_t
> fpclass(double)'
> /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/math.h:264: 
>
> error: ambiguates old declaration `int fpclass(double)'
> c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:324: error: expected declaration
> before '}' token
> In file included from c:/coin-FlopCpp/CoinUtils/src/CoinFinite.hpp:32,
>                 from
> c:/coin-FlopCpp/CoinUtils/src/CoinMessageHandler.hpp:15,
>                 from c:/coin-FlopCpp/Osi/src/OsiSolverInterface.hpp:9,
>                 from MP_constraint.cpp:14:
> c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:323:1: unterminated #ifdef
> c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:31:1: unterminated #ifndef
> In file included from
> c:/coin-FlopCpp/CoinUtils/src/CoinMessageHandler.hpp:15,
>                 from c:/coin-FlopCpp/Osi/src/OsiSolverInterface.hpp:9,
>                 from MP_constraint.cpp:14:
> c:/coin-FlopCpp/CoinUtils/src/CoinFinite.hpp:31:1: unterminated #ifdef
> c:/coin-FlopCpp/CoinUtils/src/CoinFinite.hpp:28:1: unterminated #else
> c:/coin-FlopCpp/CoinUtils/src/CoinFinite.hpp:5:1: unterminated #ifndef
> In file included from c:/coin-FlopCpp/Osi/src/OsiSolverInterface.hpp:9,
>                 from MP_constraint.cpp:14:
> c:/coin-FlopCpp/CoinUtils/src/CoinMessageHandler.hpp:3:1: unterminated
> #ifndef
> In file included from MP_constraint.cpp:14:
> c:/coin-FlopCpp/Osi/src/OsiSolverInterface.hpp:3:1: unterminated #ifndef
> make[1]: *** [MP_constraint.lo] Error 1
> make[1]: Leaving directory `/cygdrive/c/coin-FlopCpp/FlopCpp/src'
> make: *** [all-recursive] Error 1
>
>
>
>
> On 12/31/06, s.mitchell at auckland.ac.nz <s.mitchell at auckland.ac.nz> wrote:
>>
>> I ran into something similar and submitted a bug report on track,
>> The error is actually in Osi and Clp and I think the solution that 
>> worked
>> for me was to use
>> ./configure -C --enabledoscompile
>> instead of the recommended
>> ./configure
>>
>> I am posting this on a other computer with limited access to my email so
>> please have a look in trac for these bug reports for the correct 
>> syntax if
>> the above does not work
>>
>> Stu
>>
>> > Help!!!!!!!!!!! Please see the error log below...
>> >
>> >
>> > In file included from c:/coin-FlopCpp/CoinUtils/src/CoinFinite.hpp:32,
>> >                  from
>> > c:/coin-FlopCpp/CoinUtils/src/CoinMessageHandler.hpp:15,
>> >                  from 
>> c:/coin-FlopCpp/Osi/src/OsiSolverInterface.hpp:9,
>> >                  from MP_constraint.cpp:14:
>> > c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:34: warning: ignoring #pragma
>> ident
>> > c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:60: error: expected identifier
>> > before
>> > numeric constant
>> > c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:60: error: expected `}' before
>> > numeric constant
>> > c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:60: error: expected
>> unqualified-id
>> > before numeric constant
>> > c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:60: error: expected `,' or `;'
>> > before
>> > numeric constant
>> > c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:70: error: declaration does not
>> > declare anything
>> > c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:73: error: new declaration
>> > `fpclass_t
>> > fpclass(double)'
>> >
>> /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../i686-pc-mingw32/include/math.h:264: 
>>
>> > error: ambiguates old declaration `int fpclass(double)'
>> > c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:324: error: expected 
>> declaration
>> > before '}' token
>> > In file included from c:/coin-FlopCpp/CoinUtils/src/CoinFinite.hpp:32,
>> >                  from
>> > c:/coin-FlopCpp/CoinUtils/src/CoinMessageHandler.hpp:15,
>> >                  from 
>> c:/coin-FlopCpp/Osi/src/OsiSolverInterface.hpp:9,
>> >                  from MP_constraint.cpp:14:
>> > c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:323:1: unterminated #ifdef
>> > c:/coin-FlopCpp/CoinUtils/src/ieeefp.h:31:1: unterminated #ifndef
>> > In file included from
>> > c:/coin-FlopCpp/CoinUtils/src/CoinMessageHandler.hpp:15,
>> >                  from 
>> c:/coin-FlopCpp/Osi/src/OsiSolverInterface.hpp:9,
>> >                  from MP_constraint.cpp:14:
>> > c:/coin-FlopCpp/CoinUtils/src/CoinFinite.hpp:31:1: unterminated #ifdef
>> > c:/coin-FlopCpp/CoinUtils/src/CoinFinite.hpp:28:1: unterminated #else
>> > c:/coin-FlopCpp/CoinUtils/src/CoinFinite.hpp:5:1: unterminated #ifndef
>> > In file included from 
>> c:/coin-FlopCpp/Osi/src/OsiSolverInterface.hpp:9,
>> >                  from MP_constraint.cpp:14:
>> > c:/coin-FlopCpp/CoinUtils/src/CoinMessageHandler.hpp:3:1: unterminated
>> > #ifndef
>> > In file included from MP_constraint.cpp:14:
>> > c:/coin-FlopCpp/Osi/src/OsiSolverInterface.hpp:3:1: unterminated 
>> #ifndef
>> > make[1]: *** [MP_constraint.lo] Error 1
>> > make[1]: Leaving directory `/cygdrive/c/coin-FlopCpp/FlopCpp/src'
>> > make: *** [all-recursive] Error 1
>> > _______________________________________________
>> > FlopCpp mailing list
>> > FlopCpp at list.coin-or.org
>> > http://list.coin-or.org/mailman/listinfo/flopcpp
>> >
>>
>>
>
>


-- 
___________________________________
Dr Stuart Mitchell
Pasifika Mentor / Lecturer
Department of Engineering Science
University of Auckland
Private Bag 92019
Auckland
New Zealand

Ph (wk) +64 (9) 3737599 ext 84538/84970
   (mb) +64 (21) 441331
___________________________________

-------------- next part --------------
A non-text attachment was scrubbed...
Name: s.mitchell.vcf
Type: text/x-vcard
Size: 368 bytes
Desc: not available
Url : http://list.coin-or.org/pipermail/flopcpp/attachments/20070219/7fb56ec4/s.mitchell.vcf


More information about the FlopCpp mailing list