you can write a cPP file with name Test.cpp
then type the command :
g++ -o JieTest Test.cpp
note : JieTest is the name your like .
it will produce a JieTest file (if can execute) finish!!!
(((
yum installl gcc g++-c++
then will install gcc and g++
)))
本文介绍如何使用g++编译器创建并编译C++源文件,通过具体实例演示了从编写源代码到生成可执行文件的完整过程。同时提供了安装g++编译器的方法。
725

被折叠的 条评论
为什么被折叠?



