Author Topic: codeblocks beginner  (Read 1799 times)

Offline benoie

  • Single posting newcomer
  • *
  • Posts: 3
codeblocks beginner
« on: June 12, 2015, 05:01:44 pm »

-------------- Build: Debug in binoytestProj (compiler: GNU GCC Compiler)---------------

g++ -Wall -fexceptions -g  -c /media/benoie/7068817868813E3A/Alpinetemp/ProjectCPP/binoytestProj/main.cpp -o obj/Debug/main.o
/bin/sh: 1: g++: not found
Process terminated with status 127 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
 
When I start immediately after installation wit code
#include <iostream.h>

using namespace std;

int main()
{
    cout << "Hello world!" << endl;
    return 0;
}
How can i sort out the problem

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6996
    • My Best Post
Re: codeblocks beginner
« Reply #1 on: June 12, 2015, 05:10:57 pm »
Step1: Install the GNU GCC C++ Compiler on your computer!

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

Offline benoie

  • Single posting newcomer
  • *
  • Posts: 3
Re: codeblocks beginner
« Reply #2 on: June 17, 2015, 02:37:15 pm »
I installed gnu objective c++ compiler
still it is not compiling
any problem to set up the environment?

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: codeblocks beginner
« Reply #3 on: June 17, 2015, 03:41:11 pm »
Step1: Install the GNU GCC C++ Compiler on your computer!
I installed gnu objective c++ compiler
A few links if it's still not clear:
mingw-builds 64-bit -> http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/
mingw-builds 32-bit -> http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/
tdm gcc -> http://tdm-gcc.tdragon.net/
Don't forget to configure executable paths in 'settings->compiler->toolchain executables'.