Author Topic: GCC.exe - no disk while compiling an .RC file  (Read 4976 times)

Offline giljo11778

  • Single posting newcomer
  • *
  • Posts: 3
GCC.exe - no disk while compiling an .RC file
« on: November 10, 2009, 12:36:27 am »
I hope someone can help on this one.  I've just switched from DEV-C++ to code::blocks and am just learning how to write windows gui apps and use resource files. 

When I include a resource file in my project I get a message box:

gcc.exe - no disk
There is no disk in the drive. Please insert a disk into drive D:.

I have to click 10 or so times to get past this and then the project is compiled. 

It seems to be only the resource file, if I make a change to the .cpp file and recompile, I get no errors, if I change the .rc file, I receive the errors again.  There are no paths specified in the resource file, just a cursor, an icon, and a wav, all in the local project directory.

I've searched the forum for this type of error and found there was a problem with an older distribution of gcc, I upgraded and still have the issue.

My environment:

Windows XP pro SP3
code::block 8.02 build Feb 27 2008, 20:29:09 - wx2.8.7 (Windows/unicode)
mingw from gcc-g++-3.4.5-20060117-3.tar.gz downloaded from sourceforge

Also, building the same projecting after switching to the VC++ 2005/2008 compiler (which is installed) builds the project with 277 warnings but no popup boxes.  Switching back to the gcc compiler gives me the popups again.

Thanks in advance for any advise

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: GCC.exe - no disk while compiling an .RC file
« Reply #1 on: November 10, 2009, 02:54:22 am »
You need gcc-core-3.4.5-20060117-3.tar.gz as well.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline giljo11778

  • Single posting newcomer
  • *
  • Posts: 3
Re: GCC.exe - no disk while compiling an .RC file
« Reply #2 on: November 10, 2009, 06:35:07 am »
Thanks TDragon!  

I didn't install the files in the core archive but I do have them.  I never updated gcc before so I can and did easily overlook this.  I'll give that a try as soon as I get back to the office.   :)

Offline giljo11778

  • Single posting newcomer
  • *
  • Posts: 3
Re: GCC.exe - no disk while compiling an .RC file
« Reply #3 on: November 13, 2009, 05:56:57 pm »
Installing the core files fixed it right up. 

Thanks so much!  :oops: :oops: :oops: