wat is a good C++ compilier and for mac unbuntu linux debian only?
Monday, March 14th, 2011 at
14:37
im new to c++ and i dont know any good compliers
Tagged with: compliers
Filed under: Debian
Like this post? Subscribe to my RSS feed and get loads more!
Linux is entirely based on C (i’m refering to it’s structure not all the applications that run on linux). So you’ll feel right at home with C in Linux. (Debian, Ubuntu are just Linux "flavours", since Linux is opensource anyone can take it’s code and make it’s own custom operating system).
Now the compiler for C and C++ is gcc in Linux. (gcc comes from GNU Compiler Collection).
To install it, first check if it’s not already installed (on Debian it usually is and on Ubuntu as well since Ubuntu is based on Debian). Open a terminal and type gcc -v. If it’s installed it will tell you which version you have installed on your system.
Now for documentation (such as C/C++ libraries, manpages, linker documentations and so on) here’s what you have to do: (this again from the terminal)
sudo apt-get install gcc g++ libc6-dev binutils file make build-essential manpages-dev autoconf automake libtool gcc-doc
GCC. You should have that already installed on your computer. Was able to locate in in /usr/lib/gcc
If you can’t find it, or it’s not installed you can try this site;
http://gcc.gnu.org/