Code::Blocks Forums

User forums => Help => Topic started by: maxorator on March 23, 2008, 06:48:17 pm

Title: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: maxorator on March 23, 2008, 06:48:17 pm
When I press compile, Code::Blocks pops up this:
"mingw32-g++.exe" - "There is no disk in the drive. Please insert a disk into drive D:."

Then I have to press Cancel about 10 times and then it stops asking. I checked all library and include search folders - nothing related to drive D.
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: Malek on March 23, 2008, 08:59:06 pm
I have same problem ,first message is same and second is "collect2.exe" - "There is no disk in the drive. Please insert a disk into drive D:." . Have someone solved it ?
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: underflames on March 24, 2008, 10:45:17 pm
I have the same problem too.  :?
Is it a bug?
Please, is there someone that can solve this problem?
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: stahta01 on March 24, 2008, 11:47:16 pm
What OS version are you using?
(XP, ME, 98SE)

What version of MinGW GCC is installed?
(3.4.5, 4.2.1)

What path, including drive, was MinGW GCC installed to?
(C:\MinGW)

Is the files you are compiling on the same Drive?

Is Cygwin GCC installed on your computer?
Note: Having Cygwin in your path can cause MinGW GCC to not work!

I had this happen about 2 years and fixed it by upgrading or re-installing MinGW.

Tim S



Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: TDragon on March 25, 2008, 12:35:55 am
Actually, this appears to be a packaging bug in GCC 3.4.5-vista special that appears when mSYS is used to build it rather than Cygwin. I wouldn't be surprised if a fixed version was uploaded in the near future...
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: Jenna on March 25, 2008, 08:23:13 am
Try to google (http://www.google.com/search?q=There+is+no+disk+in+the+drive.+Please+insert+a+disk+into+drive&ie=utf-8&oe=utf-8&aq=t) for the error and you get about 1.740.000 hits.

Afaik this is a Windows problem.

If I remember right it can be a problem with removeable medias.
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: underflames on March 25, 2008, 01:47:12 pm

For stahta01:

- I'm on Windows XP
- These are the file in the package included in Codeblocks file Ver. 8.02 (from the Readme File)

   gcc-core-3.4.5-20060117-1-vista.tar.gz
   gcc-g++-3.4.5-20060117-1-vista.tar.gz
   mingw-runtime-3.14.tar.gz
   mingw32-make-3.81-2.tar.gz
   mingw-utils-0.3.tar.gz
   w32api-3.11.tar.gz
   binutils-2.18.50-20080109.tar.gz
   gdb-6.7.50.20071127-mingw.tar.bz2


- The path, including drive, where MinGW GCC is installed is

   C:\Programmi\Codeblocks\MinGW

   ("Programmi"="Program files" - I'm using an italian version of XP).

- The project is in the same drive where MinGW is installed on.

- Cygwin is not installed

I don't think this is a Windows problem.
Thanks for reply.


Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: MortenMacFly on March 26, 2008, 07:52:09 pm
"mingw32-g++.exe" - "There is no disk in the drive. Please insert a disk into drive D:."
What happens if you (add MinGW to the PATH) and run it from the command line?
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: TDragon on March 26, 2008, 08:48:21 pm
Seriously, folks, this is a packaging bug in GCC 3.4.5-vista special. Just cd to the bin directory and run "strings mingw32-g++.exe > gccstrings.txt", and open gccstrings.txt and you'll see what I mean -- there are references to paths like "d:/JDevel/MinGW", "d:/JDevel/MinGW/lib/gcc/", "d:/JDevel/MinGW/bin/", and "d:/JDevel/MinGW/libexec/gcc/".

As I was the creator of the 3.4.5-vista special package, I'm working on getting this fixed right now.
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: MortenMacFly on March 27, 2008, 04:46:06 pm
Seriously, folks, this is a packaging bug in GCC 3.4.5-vista special.
That's too bad. :-(

I never realised this for all the Vista machines I use(d). Probably because all of them have a second HDD so there *is* a D drive???

Mind reporting back if you have a "good" release?! ;-) Probably we will do a re-packaging for  the Vista guys then, too.
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: indigo0086 on March 27, 2008, 05:15:57 pm
It could be that your config file is set up for mingw set up on a separate drive.  I have that happen a lot, by default my hard drive if F, but whenever I start from scratch (new config file), it defaults to C, so I get compiler errors.  Try looking in your default.config file.
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: TDragon on March 27, 2008, 08:14:33 pm
I never realised this for all the Vista machines I use(d). Probably because all of them have a second HDD so there *is* a D drive???
Exactly. My current dev machine has 'C', 'D', 'E' and 'F' drives; and it used to go through 'I' because of partitioning. Note that this is not a Vista-specific issue; it merely appears in the 3.4.5-vista special package because I used mSYS to build it rather than Cygwin.

Quote
Mind reporting back if you have a "good" release?!
Not at all. Still working through issues with building "natively" under Cygwin, but it shouldn't be much longer.
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: TDragon on April 02, 2008, 01:16:52 am
Situation Update:
Aaron W. LaFramboise, the MinGW GCC release manager, has said that he should be able to upload a new version of GCC 3.4.5 by Thursday (2008-04-03). If for some reason this doesn't happen, I will volunteer my build again. Either way, a new Vista-fixed GCC 3.4.5 release should be available shortly.
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: TDragon on April 07, 2008, 01:49:11 am
Resolution:
MinGW GCC 3.4.5-20060117-2 (http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82723&release_id=590259) has now been released. It should be identical in every respect to the original 3.4.5 release except that it works on Vista.
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: charon2112 on June 09, 2008, 07:13:09 pm
Hello, I am having this problem as well.  I am running Windows XP.  I downloaded the latest codeblocks self installer.  and when I try to buld or run anything I get the "no disk in drive" message.  But I'm not running Vista.  can anyone help?

Thanks...
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: stahta01 on June 09, 2008, 08:46:10 pm
Hello, I am having this problem as well.  I am running Windows XP.  I downloaded the latest codeblocks self installer.  and when I try to buld or run anything I get the "no disk in drive" message.  But I'm not running Vista.  can anyone help?

Thanks...

In stall the new MinGW 3.4.5.

Tim S
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: charon2112 on June 09, 2008, 08:53:34 pm
Thank you! :)

I don't suppose you have a link?
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: yair on June 16, 2008, 01:26:43 pm
im trying to run codeblcoks on a bootcamped mbp. windows xp 3.
i got the same error.
after trial and error

1. download codeblocks with no mingw
codeblocks-8.02-setup.exe
2. d/l the "Automated MinGW Installer" from sourceforge, make sure you add support for g++ when prompted, install.
3. launch codeblocks and follow this instructions to make let it know what compiler you want (first one, gcc)
http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler#Compiler-neutral_setup_steps

this instructions are from a noob POV, codeblocks mingw distribution is broken for some ppl, please may it be fixed soon.
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: wfox on June 26, 2008, 07:30:59 pm
I don't understand why the C::B+MinGW package have not been fixed.
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: wmx010 on May 31, 2009, 03:30:03 pm
Resolution:
MinGW GCC 3.4.5-20060117-2 (http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82723&release_id=590259) has now been released. It should be identical in every respect to the original 3.4.5 release except that it works on Vista.

I've downloaded this file: (gcc-g++-3.4.5-20060117-2-src.tar) but I don't know what to do with it.
What should I do with this file(s) in order to solve this problem ?
I've CodeBlocks with the "16 May 2009 build (5602)" Nightly build.
Title: Re: Code::Blocks pops up "Insert a disk into drive D" when compiling
Post by: stahta01 on June 01, 2009, 01:14:03 am
I've downloaded this file: (gcc-g++-3.4.5-20060117-2-src.tar) but I don't know what to do with it.
What should I do with this file(s) in order to solve this problem ?
I've CodeBlocks with the "16 May 2009 build (5602)" Nightly build.

Nearly all files with -src tend to be souces code files.
I suggest re-stalling all of MinGW GCC.

Or
gcc-core-3.4.5-20060117-3.tar.gz and gcc-g++-3.4.5-20060117-3.tar.gz

Tim S