User forums > General (but related to Code::Blocks)
Win32 resources
blr:
Hi,
I've created New Project for Win32 GUI application and I've added new resource file rs.rc with these lines:
#include <windows.h>
Background_Bmp RCDATA DISCARDABLE "bg.bmp"
Background_Region RCDATA DISCARDABLE "region.rgn"
When I've tried to rebuild project, windres.exe has aborted that with these error:
mingw32-g++.exe -Wall -g -c C:\Users\PC\Desktop\test\main.cpp -o obj\Debug\main.o
windres.exe -J rc -O coff -i C:\Users\PC\Desktop\test\test.rc -o obj\Debug\test.res
windres.exe: C:\\Users\\PC\\Desktop\\test\\test.rc:7: syntax error
When I open command line with this command:
C:\Users\PC\Desktop\test>windres -J rc -O coff -i C:\Users\PC\Desktop\test\test. rc -o obj\Debug\test.res
There's no problem..
What I doing wrong?
(Win7, MinGW64, i686-5.1.0-posix-dwarf-rt_v4-rev0)
Thank you
stahta01:
--- Quote from: blr on June 07, 2015, 05:24:47 pm ---C:\Users\PC\Desktop\test>windres -J rc -O coff -i C:\Users\PC\Desktop\test\test. rc -o obj\Debug\test.res
--- End quote ---
If you cut and pasted right, get rid of the space in the file extension or add the file extension of rc.
Tim S.
blr:
I'm sorry, that isnt pasted right.
edit: I've tried same code to compile in masm32 and that's ok, I think problem is in settings of codeblocks
oBFusCATed:
What options does masm32 use when it calls winres?
stahta01:
Do you have any reason to believe that you are using the same windres.exe inside Code::Blocks and on the command line?
Tim S.
Navigation
[0] Message Index
[#] Next page
Go to full version