Code::Blocks Forums

User forums => Help => Topic started by: Williamtt97 on August 27, 2013, 01:17:42 am

Title: Not building
Post by: Williamtt97 on August 27, 2013, 01:17:42 am
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();
}
Title: Re: Not building
Post by: stahta01 on August 27, 2013, 01:29:43 am
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F (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.
Title: Re: Not building
Post by: Williamtt97 on August 27, 2013, 02:50:01 am
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
Title: Re: Not building
Post by: Commaster on August 27, 2013, 06:27:08 am
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)
Title: Re: Not building
Post by: stahta01 on August 27, 2013, 04:22:45 pm
http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler (http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler)