In order to compile and use c/c++ under Linux you need following packages
linux系统编译需要的软件包如下:
1.=> autoconf : GNU's Autoconf is a tool for configuring source code and Makefiles.
2.=> make/automake : A GNU tool for controlling the generation of executables and other non-source files of a program from the program's source files.
3.=> GNU GCC C compiler (gcc) : The gcc package contains the GNU Compiler Collection version 4.1
4.=> GNU GCC C++ compiler (gcc-c++): This package adds C++ support to the GNU Compiler Collection.
centos举例:
参考:http://www.cyberciti.biz/faq/howto-install-c-cpp-compiler-on-rhel/
linux系统编译需要的软件包如下:
1.=> autoconf : GNU's Autoconf is a tool for configuring source code and Makefiles.
2.=> make/automake : A GNU tool for controlling the generation of executables and other non-source files of a program from the program's source files.
3.=> GNU GCC C compiler (gcc) : The gcc package contains the GNU Compiler Collection version 4.1
4.=> GNU GCC C++ compiler (gcc-c++): This package adds C++ support to the GNU Compiler Collection.
centos举例:
yum install gcc gcc-c++ autoconf automake
参考:http://www.cyberciti.biz/faq/howto-install-c-cpp-compiler-on-rhel/