Code::Blocks Forums

User forums => Help => Topic started by: Icekilla on May 18, 2014, 06:50:30 pm

Title: MinGW: No disk in drive
Post by: Icekilla on May 18, 2014, 06:50:30 pm
When I open Code::Blocks, a pop up message saying "There's no disk in drive. Insert a disk in drive i:. As the title, I can see mingw32-gcc.exe, which is the MinGW compiler for C.

Problem is, lots of these small windows pop up and I have to close them all.

These are the settings I'm using for the compiler

(http://cdn.overclock.net/f/f8/900x900px-LL-f8b41258_aGGqbPa.jpeg)

Note that I made a standalone install of MinGW because I also use it on NetBeans, which BTW, is working fine.

I need both IDE's working, tho. Also, in CLI, when I input gcc.exe -v I get the same error, ironically.

(http://i.imgur.com/6PfAtLz.jpg)

I have the latest MinGW version installed. Any ideas on how to fix this?

System specs: Windows 8.1 Pro x64, all updates installed. Made a clean install last night.
Title: Re: MinGW: No disk in drive
Post by: Icekilla on May 18, 2014, 06:51:36 pm
EDIT: Doublepost.
Title: Re: MinGW: No disk in drive
Post by: Alpha on May 18, 2014, 07:02:59 pm
I believe the current TDM (http://tdm-gcc.tdragon.net/) build of MinGW is patched to fix that.

If that does not work, check if your monitor is able to have its extra ports disabled (e.g. unplug the usb connecting your monitor to your computer, if you have one).
Title: Re: MinGW: No disk in drive
Post by: Icekilla on May 18, 2014, 07:04:31 pm
My monitors don't have USB ports.

I'll try the TDM thing. Hang on.
Title: Re: MinGW: No disk in drive
Post by: Icekilla on May 18, 2014, 07:06:20 pm
Do I need to uninstall MinGW before installing TDM?
Title: Re: MinGW: No disk in drive
Post by: Icekilla on May 18, 2014, 07:24:47 pm
Ok, TDM seems to be working fine on Code::Blocks, but on NetBeans it says there's a make command missing on the TDM files.

What do I do? :(
Title: Re: MinGW: No disk in drive
Post by: Jenna on May 18, 2014, 07:34:40 pm
Ok, TDM seems to be working fine on Code::Blocks, but on NetBeans it says there's a make command missing on the TDM files.

What do I do? :(
Look if the make.exe exists (I guess not) and if not copy mingw32-make.exe to make.exe in the bin-folder.
Title: Re: MinGW: No disk in drive
Post by: Icekilla on May 18, 2014, 07:40:14 pm
NetBeans says that it won't take the MinGW make executable file, that it HAS to use the one in MSYS.

Can I just use MinGW for NetBeans and TDM for CodeBlocks? Like, using these settings for NetBeans

(http://i.imgur.com/b2EqpE1.jpg)

Also, when using TDM on CodeBlocks, the debugger is still showing the same "No disk" error even though I specified the settings.

(http://i.imgur.com/lErpcXT.jpg)
Title: Re: MinGW: No disk in drive
Post by: stahta01 on May 18, 2014, 07:40:35 pm
Ok, TDM seems to be working fine on Code::Blocks, but on NetBeans it says there's a make command missing on the TDM files.

What do I do? :(
Look if the make.exe exists (I guess not) and if not copy mingw32-make.exe to make.exe in the bin-folder.

IIRC, NetBeans needs Cygwin or MSys version of make.exe; it will NOT like MinGW make.

Tim S.
Title: Re: MinGW: No disk in drive
Post by: thomas on May 18, 2014, 10:02:18 pm
IIRC, NetBeans needs Cygwin or MSys version of make.exe; it will NOT like MinGW make.
GNU buildtools are such a bad joke. How come so many people still use this  >:(

This is almost like MPFR which will build only using make 3.8 but not make 4.0 -- of course make 3.8 has broken parallel builds, so if you try to build GCC 4.9 you either need a lot of time or you need 2 versions of make installed...

(that is what I spent last weekend on, btw... on a positive note, it's perfectly possible to build GCC without winpthreads, it didn't complain something was missing)
Title: Re: MinGW: No disk in drive
Post by: stahta01 on May 18, 2014, 10:36:28 pm
NetBeans says that it won't take the MinGW make executable file, that it HAS to use the one in MSYS.

Can I just use MinGW for NetBeans and TDM for CodeBlocks? Like, using these settings for NetBeans


Also, when using TDM on CodeBlocks, the debugger is still showing the same "No disk" error even though I specified the settings.


Yes, you can have two versions of MinGW GCC installed.
But, neither one can be in a special location.
The locations I think are special are
x:\MinGW
x:\MinGW32

Where "x" is any drive letter.

You still need to configure the debugger tool chain location to use the good compiler.

Tim S.