Code::Blocks Forums

User forums => Help => Topic started by: alexus01 on September 03, 2009, 01:07:31 am

Title: "No Disk" error message, code::blocks vista
Post by: alexus01 on September 03, 2009, 01:07:31 am
I have a VIO running vista. Code::Blocks would not compile and shows the message "No disk", which does not go away unless I used the Task Manager and end the MinGW.
I've been looking for a solution and I found something that worked pretty well. For some reason, the message stoped popping up when I disabeled the Memory Stick and SD card readers (using the Device manager). Someone from Mexico suggested on this site to disable the Memory Stick only, I had to disable both. Make sure you only disable, DO NOT UNINSTALL.
Title: Re: "No Disk" error message, code::blocks vista
Post by: Jenna on September 03, 2009, 01:18:27 am
Please don't use a poll to start a topic next time !

This is most likely a known (packaging) error.

See here : http://forums.codeblocks.org/index.php/topic,10936.msg74774.html#msg74774 (http://forums.codeblocks.org/index.php/topic,10936.msg74774.html#msg74774)

The correct solution is to use a more recent gcc version (without the packaging error), everything else is a hack to hide the symptons, but does not resolve the underlying issue.
Title: Re: "No Disk" error message, code::blocks vista
Post by: fauxy on September 10, 2009, 01:33:41 pm
I'm running windows xp 64 bit sp 2 and am still getting this "Windows - No Disk      Exepction Processing Message...."  after updating MinGW to the latest version.

I'm new to c++ and am trying to get a IDE with debuging that works, dev-C++, codeblocks, visual studio, none of their debugs work.

Bare with me and help me please  :cry:
Title: Re: "No Disk" error message, code::blocks vista
Post by: MortenMacFly on September 10, 2009, 01:37:18 pm
I'm running windows xp 64 bit sp 2 and am still getting this "Windows - No Disk      Exepction Processing Message...."  after updating MinGW to the latest version.
What is the "latest version" for you? Please provide exact version information, e.g. by typing "g++ --version" in a command prompt.
Title: Re: "No Disk" error message, code::blocks vista
Post by: fauxy on September 10, 2009, 01:42:31 pm
What is the "latest version" for you? Please provide exact version information, e.g. by typing "g++ --version" in a command prompt.

typing g++ --version in a command prompt returns 'g++' is not recognized as an internal or external command, operable program or batch file.

sorry if im doing something wrong, im not familiar with dos commands
Title: Re: "No Disk" error message, code::blocks vista
Post by: MortenMacFly on September 10, 2009, 01:53:33 pm
'g++' is not recognized as an internal or external command, operable program or batch file.
Ok - to be more precise:
Go to the compiler installation directory, then into the "bin" sub-directory and try again.

Notice: The compiler executable I am referring to is at:
[YOUR_MINGW_INSTALL_FOLDER]\bin\g++.exe
Title: Re: "No Disk" error message, code::blocks vista
Post by: Jenna on September 10, 2009, 01:57:42 pm
'g++' is not recognized as an internal or external command, operable program or batch file.
Ok - to be more precise:
Go to the compiler installation directory, then into the "bin" sub-directory and try again.

Notice: The compiler executable I am referring to is at:
[YOUR_MINGW_INSTALL_FOLDER]\bin\g++.exe
If there are several MinGW-installations, use the one the toolchain executables tab in compiler settings points to.
Title: Re: "No Disk" error message, code::blocks vista
Post by: fauxy on September 10, 2009, 01:59:18 pm
gcc <GCC> 3.4.5 <mingw-vista special r3>
Title: Re: "No Disk" error message, code::blocks vista
Post by: fauxy on September 10, 2009, 02:00:34 pm
'g++' is not recognized as an internal or external command, operable program or batch file.
Ok - to be more precise:
Go to the compiler installation directory, then into the "bin" sub-directory and try again.

Notice: The compiler executable I am referring to is at:
[YOUR_MINGW_INSTALL_FOLDER]\bin\g++.exe
If there are several MinGW-installations, use the one the toolchain executables tab in compiler settings points to.

hm there my be several installations, let me look for this 'toolchain'
Title: Re: "No Disk" error message, code::blocks vista
Post by: fauxy on September 10, 2009, 02:18:53 pm
Well I think i figured out the problem, it was using the older file provided by dev-C++.
I didn't know what you meant by toolchain, but i uninstalled dev-c++, mingw, and codeblocks and reinstalled mingw and code blocks. Then i went to the toolchain tab, autodetected to c:\mingw, and now when i debug i get this error;

"The debugger executable is not set.
To set it, go to "Settings/Complier and debugger", wtich to the 'Programs' tab,
and select the debugger program."

But there is no "programs" tab.
Title: Re: "No Disk" error message, code::blocks vista
Post by: MortenMacFly on September 10, 2009, 02:21:28 pm
But there is no "programs" tab.
Try "toolchain" -> this has been renamed.
Title: Re: "No Disk" error message, code::blocks vista
Post by: MortenMacFly on September 10, 2009, 02:27:11 pm
But there is no "programs" tab.
One more thing: Please read the documentation and search the forums before you start asking very basic questions. That's what the documentation/forums is/are for.
Title: Re: "No Disk" error message, code::blocks vista
Post by: fauxy on September 10, 2009, 02:30:41 pm
But there is no "programs" tab.
One more thing: Please read the documentation and search the forums before you start asking very basic questions. That's what the documentation/forums is/are for.
sorry, thank you soooooooo much for helping me out and fast respond times.

I have all of the need files now execpt for gdb.exe, it didnt install with the automated installer and i cant seem to find it on their source forge page.

unless it too was renamed to some like c++.exe
Title: Re: "No Disk" error message, code::blocks vista
Post by: MortenMacFly on September 10, 2009, 02:47:29 pm
I have all of the need files now execpt for gdb.exe,
You'll need to grab that separately. It's never bundled with the MinGW GCC compiler (whichsalso ships in several packages btw...). Check out MinGW.org and their download page... the package you are looking for is named "gdb-6.8-mingw-3.tar.bz2" IIRC...

Consult the MinGW.org page for more information about the different packages and what you'll require...
Title: Re: "No Disk" error message, code::blocks vista
Post by: MortenMacFly on September 10, 2009, 02:58:44 pm
...guys, I've updated the section in the WiKi:
http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler#MinGW.2FGCC

Please read.
Title: Re: "No Disk" error message, code::blocks vista
Post by: fauxy on September 10, 2009, 03:18:12 pm
I still can't get it to work :'(

All I want to do is fix my simple console app's if statements that it's skipping because i cant see what its actually doing.

I can now get it run the debugger but it wont stop on breaks, i think the reason why is because i have wrong file name for Linkers to dynamic libs: and linkers to static libs.

So I think it would help if someone went into their settings and told me their files name for the respected files.

Also, I really appricate you sticking out with my noobness, I went to the minwg page and your wiki page but its all esoteric code to me that i have yet to understand fluently.

on a side note, I really really like code::blocks more than dev-C++, you guys did a great job on it.
Title: Re: "No Disk" error message, code::blocks vista
Post by: MortenMacFly on September 10, 2009, 03:22:57 pm
I still can't get it to work :'(
My last trial:
Remove the compiler suite completely and try again with the TDM's GCC 4.4.0 (not 4.4.1!!!) packages as described in the WiKi. Please install all required packages, namely:
* gcc-4.4.0-tdm-1-core-2.zip
* gcc-4.4.0-tdm-1-g++-2.zip
* binutils-2.19.1-mingw32-bin.tar.gz
* gdb-6.8-mingw-3.tar.bz2
* mingw32-make-3.81-20080326.tar.gz
* mingwrt-3.16-mingw32-dev.tar.gz
* mingwrt-3.16-mingw32-dll.tar.gz
* w32api-3.13-mingw32-dev.tar.gz
...to be obtained from here:
http://www.tdragon.net/recentgcc/
...to be precise: http://sourceforge.net/projects/tdm-gcc/files/
...under:
TDM-GCC 4.4 series -> Previous Releases -> 4.4.0-tdm-1 (r2) SJLJ
...and here:
http://sourceforge.net/projects/mingw/files/
Title: Re: "No Disk" error message, code::blocks vista
Post by: oBFusCATed on September 10, 2009, 03:46:38 pm
By the way you can use an older installer:
tdm-mingw-1.905.0-4.4.0-2.exe (for example) to get a working 4.4.0 gcc.
The catch is that you want to deselect the checkbox "ask the tdm server for latest version" (or something like that) on the first page of the installer.
That way the installer uses the packages that are in it. And there is no need to manually do things.

Best regards

p.s. full link http://sourceforge.net/projects/tdm-gcc/files/TDM-MinGW%20Installer/1.905.0/tdm-mingw-1.905.0-4.4.0-2.exe/download