News:

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

Main Menu

codeblocks beginner

Started by benoie, June 12, 2015, 05:01:44 PM

Previous topic - Next topic

benoie


-------------- 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

stahta01

Step1: Install the GNU GCC C++ Compiler on your computer!

Tim S.
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]

benoie

I installed gnu objective c++ compiler
still it is not compiling
any problem to set up the environment?

scarphin

Quote from: stahta01 on June 12, 2015, 05:10:57 PM
Step1: Install the GNU GCC C++ Compiler on your computer!
Quote from: benoie on June 17, 2015, 02:37:15 PM
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'.