Menu

How would I link .res files to my project?

2008-05-17
2012-09-26
  • royboyjoytoy2

    royboyjoytoy2 - 2008-05-17

    How would I link .res files to my project?

    Lets say I have a precompiled resource the ends in ".res". How would I link the file to my project?

     
    • Viper187

      Viper187 - 2008-06-01

      Interesting. I've tried that before and I get "File format not recognized"

       
    • Kip

      Kip - 2008-05-19

      Just right where you would the rest of your object files being passed to the linker. That's all a .res is anyways, I think it is just an object file in COFF format but I could be mistaken.

      Kip

       
    • Viper187

      Viper187 - 2008-06-01

      I can't get this to work either. I'm trying to compile the source from an app that was made with MinGW/GCC but not Dev-C++, so I have no project file to work with. Everything compiles fine when added to an empty project, but I can't figure out how/where to add the damn .res file. Could someone provide some decent instructions please.

       
    • S. Thomas Bradley

      Hi Everyone:

      Its really not that hard to do. Try this:

      1) Select Project > Project Options.
      2) Click on the Parameters tab.
      3) Click on Add Library or Object, go to the folder containing the .res file and then change 'File of type' from Library to All files so you can see the .res file.
      4) Select the .res file. The .res file should now be under the Linker. Click the OK button.
      5) Rebuild your project (i.e. Execute > Rebuild All). It is important that you do that or the .res file will not be included. Compile or Compile and Run will not link the .res file to your program except if it is the first time it is compiled.

      I know that this works cause I just successfully linked a .res file to a program. The only issue you may have is if you have unresolved references in the res file, since you don't have the original source. Good Luck.

      See Ya
      Butch

       
    • Kip

      Kip - 2008-06-02

      Just use wxFormBuilder under Ubuntu. There is no reason to even still require a separate resource compiler in the year 2008 anymore.

      wxGTK+'s runtime and dev kit is available via apt.

      Kip

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.