User forums > Using Code::Blocks
Problem using rc files(Windows)
(1/1)
Need4sleep:
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"
--- End code ---
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
--- End code ---
Thanks if you can help!
oBFusCATed:
Probably start from here: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Need4sleep:
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
oBFusCATed:
Search the forum for a winres.exe, I think this is a common problem.
ollydbg:
--- Quote from: 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
--- End quote ---
Did you install the mingw compiler suite correctly? What is the error raw log message?
Navigation
[0] Message Index
Go to full version