Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: evolutional on August 05, 2005, 09:19:04 am

Title: windres / OGRE
Post by: evolutional on August 05, 2005, 09:19:04 am
I'm *still* having issues with windres when compiling the OGRE Win32 Platform manager. I've followed all the info I found searching the forum (eg: changing the parameter from -J to -I) but I'm still getting errors...

The resource will semi compile if I remove the include path directive (I kept getting weird messages about C:\MinGW\include being an unrecognised format, even when explicitly passing it as an include directory). The latest error (after hard pathing things like resource.h, etc) is:-

Quote
Compiling: ..\misc\OgreWin32Resources.rc
windres.exe: ../misc/OgreWin32Resources.rc:99: parse error

Line 99 looks like:   
Code
 CONTROL         106,IDC_STATIC,"Static",SS_BITMAP,0,0,327,140

When I remove that line, it compiles but crashes code::blocks on linking.

It's pretty bizarre, to say the least ^^

Any ideas from people who've compiled OGRE with GCC 4.x under C::B 1.0 final beta?
Title: Re: windres / OGRE
Post by: rickg22 on August 05, 2005, 04:06:52 pm
Hmmm it seems your windres is outdated. At least it appears so.

Also, GCC 4.0 is VERY UNSTABLE. Not recommended.
Title: Re: windres / OGRE
Post by: tiwag on August 05, 2005, 05:00:36 pm
i've not compiled ogre, but i had a few occurrences when porting code, which was originally written for M$-compilers, to MinGW, that IDC_STATIC was never defined anywhere in the sourcecode
because M$ seems to define it somewhere in the deep hell of their windows headers.

set it simply to zero -> #define IDC_STATIC 0

be sure, that all identifiers are defined or #define it yourself !
Title: Re: windres / OGRE
Post by: evolutional on August 05, 2005, 05:07:20 pm
Quote
set it simply to zero -> #define IDC_STATIC 0

Thanks, I'll give that a try :)

Quote
Hmmm it seems your windres is outdated. At least it appears so.

I'm not so sure, it's from the latest release of MinGW. I'll have to have a look to confirm though

Quote
Also, GCC 4.0 is VERY UNSTABLE. Not recommended.

Is it? I can't say I've had any problems with it at all until this, and this is a windres issue. Bizarre!
Title: Re: windres / OGRE
Post by: evolutional on August 05, 2005, 06:45:30 pm
Ok I tried a newer version of windres and it killed the errors... the main issue now is the crash that kills C::B. I'm using the old GCC 3 series compiler and it's still happening...

Here's a screengrab of the error:

(http://www.evolutional.co.uk/ogre_error.gif)

It seems to be when the Win32PlatformManager is being built...
Title: Re: windres / OGRE
Post by: mandrav on August 18, 2005, 09:35:45 pm
Hi Oli :)

Are you saying that C::B crashes while compiling OGRE Win32 Platform manager?!?

If so, which are your specs?:

WinXP (?)
GCC-4.0 (where from?)
Ogre (version ?)

Also, have you tried with RC1-1? FinalBeta is a few months old by now...

Yiannis.