Page 1 of 1

MinGW support

Posted: Sun Feb 27, 2005 21:28
by tenttu
Is there any plans to make Cegui to support mingw?

I tried compiling it with cygwin and it gave following errors:

Code: Select all

In file included from CEGUIColourRect.cpp:26:
../include/CEGUIColourRect.h:40: error: parse error before `__attribute__'
CEGUIColourRect.cpp: In member function `CEGUI::ColourRect CEGUI::ColourRect::getSubRectangle(float, float, float, float) const':
CEGUIColourRect.cpp:131: warning: function 'CEGUI::colour CEGUI::ColourRect::getColourAtPoint(float, float) const'
 is defined after prior declaration as dllimport: attribute ignored.
CEGUIColourRect.cpp:35: warning: function 'CEGUI::ColourRect::ColourRect(const CEGUI::colour&, const CEGUI::colour&, const CEGUI::colour&, const CEGUI::colour&)'
is defined after prior declaration as dllimport: attribute ignored.


I guess there is not much work needed, just some redefinations for MinGW.

Re: MinGW support

Posted: Mon Feb 28, 2005 09:42
by CrazyEddie
tenttu wrote:
Is there any plans to make Cegui to support mingw?

No plans per-se, though compatability would be a plus. Are you volunteering :)

tenttu wrote:
I tried compiling it with cygwin and it gave following errors:

<snipped code>

I guess there is not much work needed, just some redefinations for MinGW.

Looks like the first job is to fix the import/export controls for the classes.

CE.

Re: MinGW support

Posted: Wed Apr 20, 2005 17:24
by jtarbox
#if defined( __WIN32__ ) || defined( _WIN32 )
# ifdef CEGUIBASE_EXPORTS
# ifdef __GNUWIN32__
# define CEGUIBASE_API
# else
# define CEGUIBASE_API __declspec(dllexport)
# endif
# else
# define CEGUIBASE_API __declspec(dllimport)
# endif
#else
# define CEGUIBASE_API
#endif


This was my change to get it to get past that error within ming/msys, but I'm still having problems with xerces-c atm.

-jtarbox