Compiling Resources In MinGW

This is a discussion on Compiling Resources In MinGW within the C++ Programming forums, part of the General Programming Boards category; When i try to compile resource (*.rc) files in the MinGW compiler i get the following error: C:\MinGW\Bin\Windres.exe: No resources ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    387

    Compiling Resources In MinGW

    When i try to compile resource (*.rc) files in the MinGW compiler i get the following error:
    C:\MinGW\Bin\Windres.exe: No resources

    Does anyone know how to fix this?
    My resource file looks like this:
    Code:
    #include "resource.h"
    
    IDR_MYMENU MENU
    BEGIN
            POPUP "&File"
            BEGIN
                    MENUITEM "E&xit", ID_FILE_EXIT
            END
    
            POPUP "&Stuff"
            BEGIN
                    MENUITEM "&Message", ID_STUFF_GO
            END
    END
    
    IDI_MYICON ICON "world.ico"
    Did i do anything wrong in it?

    Thanks in advance

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    162
    It is because you are trying to compile the resource file separate from the rest of the program. You have to add the resource file to your project file, and then compile the project, and it will be with it.

  3. #3
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    how do i do that?
    i am using command line

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help compiling example code (MinGW and DirectX9)
    By scwizard in forum Game Programming
    Replies: 10
    Last Post: 07-25-2008, 11:43 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03:39 PM
  3. Compiling Resources
    By The Brain in forum Windows Programming
    Replies: 2
    Last Post: 10-22-2006, 11:52 AM
  4. Mingw resources - Example not working.
    By Blackroot in forum Tech Board
    Replies: 1
    Last Post: 09-02-2006, 07:21 AM
  5. compiling mingw to enable timeSetEvent
    By underthesun in forum Windows Programming
    Replies: 2
    Last Post: 02-02-2005, 06:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21