MinGW support

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

User avatar
tenttu
Just popping in
Just popping in
Posts: 1
Joined: Sun Feb 27, 2005 21:11

MinGW support

Postby tenttu » Sun Feb 27, 2005 21:28

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.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: MinGW support

Postby CrazyEddie » Mon Feb 28, 2005 09:42

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.

User avatar
jtarbox
Just popping in
Just popping in
Posts: 2
Joined: Wed Apr 20, 2005 17:14

Re: MinGW support

Postby jtarbox » Wed Apr 20, 2005 17:24

#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


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 0 guests