-
Compiling in Linux
OK, so I switched to Ubuntu (accidentally), so I figured I might as well start developing in Linux since I like it better then Windows anyway. So I got the most recent Nightly Build of Code::Blocks and made a little test console project just to see how things were different. I selected the compiler GNU GCC, but when I tried to compile the program I got this error:
/bin/sh: g++: not found
I looked in bin and there is a sh file, but I don't really know what the deal is here. Anyone know what I need to do?
Thanks a ton,
David
-
You do have g++ installed? Is it in your $PATH?
Try just typing something like this from a console.
Code:
$ g++ --version
$ # or, better yet,
$ whereis g++
-
That was it, it wasn't installed. Thanks, its working now.