更新时间:2023-01-30 21:56:35
使用g++
编译器,例如在命令提示符下键入:
Use theg++
compiler, e.g. type at command prompt:
g++ -o myapp myapp.cpp
其中"myapp"是(由编译器生成的)可执行文件的名称,"myapp.cpp"是您的C++
源文件.
where ''myapp'' is the name of the (compiler generated) executable, ''myapp.cpp'' is your C++
source file.
使用GCC.您将在此处找到所有选项: http://gcc.gnu.org/ [ http://en.wikipedia.org/wiki/Anjuta [ http: //www.anjuta.org/ [ ^ ].
如果您使用源代码发布程序,则通常将其解压缩到目录和命令中:
Use GCC. You will find all the options here: http://gcc.gnu.org/[^].
Want some something like Visual Studio? Use Anjuta IDE, see http://en.wikipedia.org/wiki/Anjuta[^], http://www.anjuta.org/[^].
If you have a program distribution in source code, you typically unpack it in a directory and command:
./configure
make
make install
您以root用户身份执行的最后一个命令,例如:sudo make install
.
Last command you do as root, for example: sudo make install
.