User forums > Help
How to tell CodeBlocks the path to the compiler under Ubuntu Linux.
Grouch:
I am trying to move a CodeBlocks C++ project to a new computer. Both computers are running Ubuntu Linux 14.04 and both have the gcc compiler installed as /usr/bin/gcc. But on the new one, every attempt to build or compile fails with the message “could not find g++”. It would seem that I need to tell CodeBlocks the path to gcc, but I can find no way to do so. Any help would be much appreciated.
oBFusCATed:
Settings -> Compiler -> GCC -> Toolchain executables
Jenna:
"g++" != "gcc" !!!
The c++-compiler ("g++") is not installed automatically on Ubuntu, install it with your favourite packagemanager.
If you never compile c++-sources (just plain c), you can change the linker executable in the toolchain from "g++" to "gcc", but any attempt to link c++-code (with this toolchain) will fail in this case.
Grouch:
Thanks, Jens, that was exactly the problem. Everything works fine now.
In selecting the wxWidgets libraries to install, I noticed that there are now versions with names ending in i386. I could not, however, find the difference from the earlier libraries. Should these i386 libraries be used on 32 or 64 bit machines -- which are now nearly universal -- instead of the older ones? If so, I need to edit the first of the wxWidgets tutorials to suggest their use. You may recall that I rewrote the versions of these tutorials originally written by the creator of wxSmith and added several more. It is nice to see that they have stood the test of time fairly well and have been read many times.
Clopper
Grouch:
I should have said wxSmith tutorials, not wxWidgets tutorials.
Clopper
Navigation
[0] Message Index
[#] Next page
Go to full version