User forums > Help

trouble with resource files in beta6

(1/2) > >>

rob:
I am using the free MS compilerkit on CB beta6, and after upgrading form beta5, my ressourcefiles do not work anymore. The ressourcefiles get propperly compiled (i can open them in MS Visual Studio) but I suspect they dont get linked into the exe. Is there any place  in the IDE where anything related to resource files needs to be configured ? Or has anybody an idea what culd have gone wrong ?

mandrav:
This happened because the compiler commands have changed since beta5. If you had uninstalled beta5 first (cleaning the configuration when asked) and then install beta6, this wouldn't have happened. Of course how could you know since I didn't mention it  :roll:

To fix this, either uninstall and then re-install (suggested because this will fix other changed settings too) or do the following:

Go to advanced compiler options for VC toolkit compiler, and change the command for "Linking object files to executable" to

--- Code: ---$linker /nologo $libdirs /out:$exe_output $libs $link_objects $link_resobjects $link_options
--- End code ---

(add $link_resobjects)

HTH,
Yiannis.

rob:
just have taken a look at the properties of a resourcefile of a sample project which I just created to sortout that resource-file-problem. The resourcefile ("res.rc") I just added to the project. The (General) properties show that the file should get compiled and linked. The advanced properties show "WINDRES" as Compiler Variable. This looks kind of strange to me, because I am using the MS Toolkit and in the Gobal Compiler Settings, I have "rc.exe" as Resource Compiler.
Nobody else using the MS Toolkit having problems with ressource Files since beta6 ??

regards
Roberto

mandrav:

--- Quote ---The advanced properties show "WINDRES" as Compiler Variable
--- End quote ---

This is just a macro, it's not the actual windres.exe! It will be substituted by the appropriate executable on compile-time...


--- Quote ---Nobody else using the MS Toolkit having problems with ressource Files since beta6 ??
--- End quote ---

Have you read my post above?

Yiannis.

rob:
Thanks very much, I did as you sugested above, unistalled/reinstalled and then everything worked fine. Your answer was so quick, I was still adding stuff to my question ! Well I am very happy with CodeBlocks so far, I think I am going to put my Visual Studio License on eBay, maybe some stupid one will pay 1 $ for it. I have an even better idea: everyone using codeblocks should do that and donate the money to codeblocks !

The only ugly thing about uninstalling/reinstalling:  I had choosen to delete all settings (was that nessessary ?) and because I had defined all the regular Win32 libs in the global compiler settings (makes sense, not ?), I had to redifine them again, one by one. Does there exist a smarter way to handle that, in regard to beta7 ?

regards
rob

Navigation

[0] Message Index

[#] Next page

Go to full version