Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jakes on February 06, 2017, 05:29:34 am

Title: Resource (.rc) Inclusion question
Post by: jakes on February 06, 2017, 05:29:34 am
Probably a remedial question, but I'm new to the IDE.

Using Code::Blocks on a Win8 machine.
I downloaded the code for an app from SourceForge that was originally intended for Visual Studio++ and I've been tweaking it to run under gcc.  Compile runs ok until I get to the menu handling code that expects to have the ID_FILE_NEW, ID_FILE_OPEN, ID_FILE_CLOSE, etc. defined.

The resource.rs file is included in the project and seems to be correctly formed, but it's like it isn't getting built or included prior to the compile on the menu.cpp file.  I'm sure it is a project config issue, but I've been going in circles for hours...

...any assistance is appreciated.
Title: Re: Resource (.rc) Inclusion question
Post by: oBFusCATed on February 06, 2017, 10:22:56 am
Is the rc file part of the project? Do you see the resource compiler's execution in the log?
Title: Re: Resource (.rc) Inclusion question
Post by: jakes on February 07, 2017, 12:55:57 am
Yes the .rc file is included under the resources folder in Project

The error is: "error: 'ID_FILE_NEW' was not declared in this scope"
followed by errors for all the other menu ID's in the case statement.

I don't see the .rc results in the build log. 

Maybe it is not finding the right windows.h file?