News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Not building

Started by Williamtt97, August 27, 2013, 01:17:42 AM

Previous topic - Next topic

Williamtt97

Hey guys, so I just installed Code::Blocks, as Im starting to learn C++ and it was recommended. So I installed it, and went to run it through a simple program to test it and when i click build and run it pops up a window "Program has not been built yet. Build now?" so I click yes, and it just flashes. It wont run it. If I click No, then it closes but the program doesnt run. Can anyone help? Heres the code:

#include <iostream>

using namespace std;

int main()
{
  cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
  cin.get();
}

stahta01

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]

Williamtt97

well yeah that would help wouldn't it? I just tried installing one that my friend recommended, MinGW but it didnt work. install log:
mingw-get: *** INFO *** setup: unpacking mingw-get-0.6.0-mingw32-hg-20130823-1-bin.tar.xz
mingw-get: *** ERROR *** unexpected end of archive reading header record
mingw-get: *** INFO *** setup: unpacking mingw-get-0.6.0-mingw32-hg-20130823-1-gui.tar.xz
mingw-get: *** INFO *** setup: unpacking mingw-get-0.6.0-mingw32-hg-20130823-1-lic.tar.xz
mingw-get: *** INFO *** setup: unpacking mingw-get-setup-0.6.0-mingw32-hg-20130823-1-dll.tar.xz
mingw-get: *** INFO *** setup: unpacking mingw-get-setup-0.6.0-mingw32-hg-20130823-1-xml.tar.xz
mingw-get: *** ERROR *** C:\MinGW\libexec\mingw-get\mingw-get-0.dll: DLL load failed; cannot run setup hooks
mingw-get: *** ERROR *** setup: unable to continue

Commaster

#3
You did read the rules upon registering, didn't you? And you accepted them. http://forums.next.codeblocks.org/index.php/topic,9996.0.html

Compiler problems are not related to this forums.

If you don't have a compiler installed, you'd better download the bundle of Code::Blocks, that comes with a working compiler installer. (codeblocks-12.11mingw-setup.exe)

stahta01

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]