Archived

This topic is now archived and is closed to further replies.

Including .rc files in Dev-C++ projects

This topic is 5148 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

It compiles them with winres.exe automatically when added. Make sure that "Include With Compilation" is checked under the Files tab in the project properties. Also, it goes odd when adding a resource file. IT might be bettr to create a *.rc file with say notepad, than add that file to your project.

Share this post


Link to post
Share on other sites
Writing out the commands yourself, it would be something like:

gcc -c source-file -oobject-file
windres -iresource-file -oobject-file
gcc all-your-object-files -mwindows -oexecutable-to-create


I'm pretty sure Dev-C++ takes care of doing that though.

[edit]

I checked. Unless you're writting your own makefile, Dev-C++ seems to arrange for windres to compile it. So just click 'Add to project', select the resource file, compile, and it should work.

[edited by - smart_idiot on November 10, 2003 2:13:02 AM]

Share this post


Link to post
Share on other sites