News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Code::Blocks pops up "Insert a disk into drive D" when compiling

Started by maxorator, March 23, 2008, 06:48:17 PM

Previous topic - Next topic

maxorator

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.

Malek

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 ?

underflames

I have the same problem too.  :?
Is it a bug?
Please, is there someone that can solve this problem?

stahta01

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



C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

TDragon

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...
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Jenna

Try to google 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.

underflames


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.



MortenMacFly

Quote from: maxorator on March 23, 2008, 06:48:17 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?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

TDragon

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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

MortenMacFly

Quote from: TDragon on March 26, 2008, 08:48:21 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

indigo0086

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.

TDragon

Quote from: MortenMacFly on March 27, 2008, 04:46:06 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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

TDragon

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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

TDragon

Resolution:
MinGW GCC 3.4.5-20060117-2 has now been released. It should be identical in every respect to the original 3.4.5 release except that it works on Vista.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

charon2112

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...