Menu

linking resource files

2002-12-29
2012-09-26
  • Nobody/Anonymous

    Does anyone know how to link resource (.rc) files either in dev-cpp 4.9.7.0 with mingw3.2 or through the DOS prompt when building a program using the win32 API?

    --Eric

     
    • Nobody/Anonymous

      You don't link an .RC file. You compile it to a .RES file with windres.exe and then link it.

      BlakJak :]

       
    • Patrick Ogay

      Patrick Ogay - 2002-12-29

      I couldn't work out to generate two step makefile (like the wGlade makefile) to Dev-Cpp...

      So I compiled the recources by the wGlade makefile on commandline.
      Because the complation of the recource is always the same, in further compilations it's enough to link to the .o files.

      the windres-thing is not at all clear to me.

       
    • upcase

      upcase - 2002-12-29

      Have you included the .rc file into your project? If not: try project options and search for a tab saying resource files. There, add the path to your file and try to compile again, Should work now. windres will be invoked for you, so you don't need the console.

       
    • Nobody/Anonymous

      I have try to add the options -v and --u at the command name  windres.exe in Tools>Compiler Option>programs ant it work fine.

      This options force windres.exe to use temporary files instead of the pipe.

      Ciao and Happy New Year :)
      Guglielmo

       

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.