Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28446 Discussions

linking a resource (*.RES) file in VS-2008

YertleTheTurtle
Beginner
413 Views

Hi:

How do I ge the linker to include my resource file *.RES file in the list of object files that it writes to the response file *.RSP when it is building an application inside VS2008?

I've gone through every possible variation in the Build Configuration Properties Tab, but nothing I do works

Thanks in advance

0 Kudos
2 Replies
YertleTheTurtle
Beginner
413 Views
Never mind - after 3 days of agony, I just figured it out (of course just after posting the question). In case anyone else has this problem: You must use "Solution explorer" and add your *.RC file to the list of files included under the "resource" header. Then, you choose the *.RC file with a right-click in Solution Explorer, choose properties, and add the RC command to the "Command" line in the "Custom build step". Choose your output file to be the "*.RES" file, and it will be included in the linker list of files to be linked. But don't forget what you did, because this will NOT SHOW UP in the "Custom Build Step" of the Configuration properties for the whole project. Mirabile dictu.
0 Kudos
Steven_L_Intel1
Employee
413 Views
If it is simply a case of the .RES file, you can add it as an "Additional dependency" in the Linker properties. A .rc file should be compiled automatically without a custom command line. I have seen some cases where file associations prevented this from working.
0 Kudos
Reply