[Coin-discuss] Problem with MinGW

Ted Ralphs tkralphs at lehigh.edu
Mon May 8 16:53:58 EDT 2006


A while back, I compiled COIN under Eclipse with CYGWIN and it worked
fine using the COIN build system (i.e., Standard Make C++ Project). In
theory, the same should be true with MinGW, but the COIN build system is
not yet set up to recognize the MinGW environment (i.e., there is no
Makefile.MINGW). This is relatively easy to fix, as long as you only
want to use gcc as your compiler, since the options are essentially
identical to those that work in CYGWIN. We were in the process of fixing
this and also adding the ability to build with Microsoft's compiler with
GNU make under MinGW, when we decided that the best solution would be to
just start using the GNU autotools, which would take care of all this
stuff for us.

We are currently in the process of converting to the use of the
autotools, so you may have to wait just a little while longer for
automated MinGW build support, unless someone wants to add a temporary
fix to the current build system to detect the MinGW/gcc environment.
This should not be hard and I may be able to do it if there is a need
for it. In any case, however, I would strongly suggest not trying to use
the Managed Make C++ Project option with COIN. It will almost surely
fail, as there are lots of compiler defines and special options needed
to build COIN.

Cheers,

Ted

Eduardo F. Silva wrote:
> Hi Marco,
> 
> Thanks for the good news.  I am also trying to bring my COIN projects from
> MSVC++ to MingW.  Are you (or someone else) using Eclipse/CDT?
> 
> May I ask you if you have any important remarks to help setting the
> environment?
> I mean, for example, compiler options, setting symbols for coin to identify
> the OS/Compiler as in CoinSignal.hpp, or even if you recommend managed or
> standard(using COIN makefiles) c++ projects.
> I think that using managed projects (makefiles automatically generated) may
> be better because would be easier to change compiler tools(for example,
> setting eclipse with Microsoft C++ toolkit (free)). However, setting the
> programming environment may be painful.
> 
> 
> Thanks,
> Eduardo.      
> 
> -----Original Message-----
> From: coin-discuss-bounces at list.coin-or.org
> [mailto:coin-discuss-bounces at list.coin-or.org] On Behalf Of Marco Tacconi
> Sent: Monday, May 08, 2006 3:16 PM
> To: coin-discuss at list.coin-or.org
> Subject: [Coin-discuss] Problem with MinGW
> 
> Hi all,
> good news: I have upgraded COIN-OR with the tarball COIN_2006May08 and 
> now my application is not running out of memory anymore.
> 
> But the issue about "-ansi" flag still open.
> 
> Regards.
> 
> Marco Tacconi
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
> 
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss


-- 
Dr. Ted Ralphs
Assistant Professor
Industrial and Systems Engineering
Lehigh University
(610)758-4784
tkralphs at lehigh.edu
www.lehigh.edu/~tkr2



More information about the Coin-discuss mailing list