Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Need4sleep on September 12, 2012, 10:34:35 pm

Title: Problem using rc files(Windows)
Post by: Need4sleep on September 12, 2012, 10:34:35 pm
Im trying to compile an rc file in code::blocks but im getting some errors. Here's the file:
Code
#include "I:/Win32/Win32_SimpleMenu/resource.h"

IDR_MYMENU MENU
BEGIN
POPUP "&file"
BEGIN
MENUITEM "E&xit", ID_FILE_EXIT
END

POPUP "&Stuff"
BEGIN
MENUITEM "&Go", ID_STUFF_GO
MENUITEM "G&o somewhere else", 0, GRAYED
END
END

IDI_MYICON ICON "menu_one.ico"

the compiler says it is compiling the rc file, but it does nothing. After cancling i get:

can't open file `prompt': No such file or directory|
||preprocessing failed.|
||=== Build finished: 2 errors, 0 warnings ===|

resource.h
Code
#define IDR_MYMENU                      101
#define IDI_MYICON                      102
#define ID_FILE_EXIT                    40001
#define ID_STUFF_GO                     40002
#define ID_STUFF_GOSOMEWHEREELSE        40003

Thanks if you can help!
Title: Re: Problem using rc files(Windows)
Post by: oBFusCATed on September 12, 2012, 10:35:41 pm
Probably start from here: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Title: Re: Problem using rc files(Windows)
Post by: Need4sleep on September 12, 2012, 10:43:35 pm
I appreiciate the help, it not notes that the process tried to write to a nonexistant pipe. Does that help at all?

EDIT: also says windres.exe is the source that gets the error
Title: Re: Problem using rc files(Windows)
Post by: oBFusCATed on September 12, 2012, 11:03:26 pm
Search the forum for a winres.exe, I think this is a common problem.
Title: Re: Problem using rc files(Windows)
Post by: ollydbg on September 21, 2012, 04:51:10 am
I appreiciate the help, it not notes that the process tried to write to a nonexistant pipe. Does that help at all?

EDIT: also says windres.exe is the source that gets the error
Did you install the mingw compiler suite correctly? What is the error raw log message?