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
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
If you cut and pasted right, get rid of the space in the file extension or add the file extension of rc.
Tim S.
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
What options does masm32 use when it calls winres?
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.
You're probably right.. I've tried it at the work and it has run without problem... Where can I find the settings of windres path? Thank