How to compile .rc files when creating using CL.exe?

I run cl for my build phase. How to compile embedded resources into final executable?

+6
visual studio
source share
1 answer

Run rc.exe to compile the .rc script into .res. Pass this to the linker so that it is embedded in the final image.

There are many reasons for not just letting the IDE take care of this. He does many other things automatically. How to get the proper manifest inline. And creating a debug assembly that helps you diagnose uninitialized variables and stack corruption. And support for edit + continue. But yes, you can do this too if you know all the command line switches. The best way to find them is to collect some sample projects using the IDE and look at the build log files to see what is used.

+5
source share

All Articles