User forums > Using Code::Blocks
Trouble with resources and CodeBlocks
Max:
The issue appeared to me because I used DevCpp since last week. Switching to CodeB I used the old DevCpp projects files to create a new project. In DevCpp you can use several .rc files (it is more convenient to edit
small files focused on few resources). DevCpp automatically creates a *_private.rc in which all the .rc are included, then windres will compile the private file (a single file).
Because I was not aware about the MinGW issue (flagged by tiwag) and because CodeBlocks is not using a
*private.rc my project are no longer working.
Anyway the solution suggested by tiwag is simple and works. Now I have a single file resources.rc in which I include all the .rc files. Everything in OK now.
thanks.
P.S.
Codeblocks is a fantastic IDE. Much better than DevCpp. The developpers certainly deserve a donation.
I will donate ASAP.
severach:
This isn't just a Windres problem. It occurs with Borland and Digital Mars C++ too and I'm using RC.EXE out of the Windows SDK since neither of those built in resource compiles produce anything useful. Multiple .rc files compiled with RC.EXE and linked with Microsoft link work just fine. Watcom has yet to be tested.
The Dev-C++ method ends up being the best anyways because it supports conditionally including .RC files.
Navigation
[0] Message Index
[*] Previous page
Go to full version