User forums > Using Code::Blocks

Trouble with resources and CodeBlocks

(1/2) > >>

Max:
Hi *.*

I am having some trouble using rc files.

A) If I put every resources definition in one single file foo.rc compiling the foo.rc with windres the resulting executable, linked with the foo.res, works perfectly.

B) If I put the resources definition in several .rc files I got trouble. Compiling every .rc files separately
in different .res files and then linking all the .res files, the resulting executable does not work. The resources
seems not present.

C) I used DevC++ in the past, I switched to CodeBlocks some days ago. DevC++ is used to make a
*_private.rc file in which all the rc file are #included. So at the end I was compiling a single rc file.
And everithing work.

Question.

Are there any reasons for this behaviour? Is it really required to use, compile and link a single *.rc file?

Thanks for your help

Max

Michael:
Hello,

Could you say which C::B version are you using?

And just a suggestion. Did you make a search in the forum? There are quite some posts about .rc files and may be one of them could help you or at least give you the right direction to go.

Best wishes,
Michael

Max:
Dear Michael

Thank for your reply.

I am using the latest nightly build. I did a search in the Window forum and I found another post with exactly the same issue. But there was no clear answer (to me).

Basically is it true or not that I have to link an .res file only?

Max

kkez:

--- Quote from: Max on February 08, 2006, 06:44:47 pm ---Are there any reasons for this behaviour? Is it really required to use, compile and link a single *.rc file?
--- End quote ---
What's the problem with that?
Anyway, i think that this problem is not related to CodeBlock, but to MinGW.

If you explain what are you trying to accomplish, maybe we can find a workaround  :)

tiwag:
it's a known issue of MinGW windres - workaround it like you proposed already,
#include all your *.rc files in one file and compile this one.

Navigation

[0] Message Index

[#] Next page

Go to full version