Author Topic: Not building  (Read 9014 times)

Offline Williamtt97

  • Single posting newcomer
  • *
  • Posts: 2
Not building
« 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();
}

Online stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Not building
« Reply #1 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

Do you have a Compiler installed?

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

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Williamtt97

  • Single posting newcomer
  • *
  • Posts: 2
Re: Not building
« Reply #2 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

Online Commaster

  • Almost regular
  • **
  • Posts: 171
Re: Not building
« Reply #3 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)
« Last Edit: August 27, 2013, 06:34:44 am by Commaster »

Online stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org