User forums > Help

Not building

(1/1)

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:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

Do you have a Compiler installed?

If yes, what is the path to the installed compiler?

Tim S.

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:
You did read the rules upon registering, didn't you? And you accepted them. http://forums.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:
http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler

Navigation

[0] Message Index

Go to full version