Author Topic: [SOLVED] how to set g++-4.1 for code::blocks  (Read 14712 times)

Offline idhan

  • Multiple posting newcomer
  • *
  • Posts: 26
[SOLVED] how to set g++-4.1 for code::blocks
« on: March 16, 2007, 03:56:39 pm »
Hi,

I can't compile because I get the follow message:

/bin/sh: g++: not found

I am using g++-4.1 (actually I have already compile wxgtk2.8.2 with g++-4.1), but code::blocks do not use this compiler.
I have setting the variable CXX=g++-4.1 on linux kubuntu edge 6.10.
Where in CB can I set the compile version of g++???

thanks in advance.
« Last Edit: March 16, 2007, 05:09:31 pm by idhan »

Offline indigo0086

  • Almost regular
  • **
  • Posts: 150
Re: how to set g++-4.1 for code::blocks
« Reply #1 on: March 16, 2007, 04:25:32 pm »
G++ comes with mingw along with other compilers, you have to have it all in the mingw directory and codeblocks automatically locates it.

wxLearner

  • Guest
Re: how to set g++-4.1 for code::blocks
« Reply #2 on: March 16, 2007, 04:32:31 pm »
Hello, the currently used compiler normally has a symbolic link. Either open your console and create the links:
Code
sudo ln -s /usr/bin/gcc-4.1 /usr/bin/gcc
sudo ln -s /usr/bin/g++-4.1 /usr/bin/g++
Or install the virtual packages, that will use the stable version:
Code
sudo apt-get install g++

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: how to set g++-4.1 for code::blocks
« Reply #3 on: March 16, 2007, 04:51:48 pm »
Hi,

I can't compile because I get the follow message:

/bin/sh: g++: not found

I am using g++-4.1 (actually I have already compile wxgtk2.8.2 with g++-4.1), but code::blocks do not use this compiler.
I have setting the variable CXX=g++-4.1 on linux kubuntu edge 6.10.
Where in CB can I set the compile version of g++???

thanks in advance.

Make sure the path to your tool chain has been specified to CB.

MainMenu=>Setting=>Compiler&Debugger=>Global Compiler Settings Settings/Tool Chain executables



Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: how to set g++-4.1 for code::blocks
« Reply #4 on: March 16, 2007, 04:52:54 pm »
G++ comes with mingw along with other compilers, you have to have it all in the mingw directory and codeblocks automatically locates it.
indigo0086: idhan is using Kubuntu Linux, not Windows.

idhan: What Pecan said.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline idhan

  • Multiple posting newcomer
  • *
  • Posts: 26
Re: how to set g++-4.1 for code::blocks
« Reply #5 on: March 16, 2007, 05:09:07 pm »
thanks a lot, If found the right setting :-)