设为首页 加入收藏

TOP

2.4 在LINUX C++中运行第一个程序(6)
2013-10-07 16:05:36 来源: 作者: 【 】 浏览:81
Tags:2.4 LINUX 运行 一个 程序

2.4  在LINUX C++(www.cppentry.com)中运行第一个程序(6)

设置好上述3项内容后,按常规方式在项目中创建cxx、hpp、c++、h等文件,并编写有关代码。这时,在Eclipse各个透视图中能够非常方便地查看项目资源、问题、任务、控制台、大纲等关联内容,并集成进行调试和发布,如图2.14所示。

 
(点击查看大图)图2.14  采用ECLIPSE HELIOS开发LINUX游戏
编写HelloPanda3D.cxx的代码,在集成环境中构建整个项目,控制台运行输出如下:
  1. **** Build of configuration Debug for project HelloPanda3D ****  
  2.  
  3. make all   
  4. Building file: ../HelloPanda3D.cxx  
  5. Invoking: GCC C++(www.cppentry.com) Compiler  
  6. g++ -I/usr/include/python2.6 -I/usr/include/panda3d -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"HelloPanda3D.d" -MT"HelloPanda3D.d" -o"HelloPanda3D.o"   
  7. "../HelloPanda3D.cxx"  
  8. Finished building: ../HelloPanda3D.cxx  
  9.  
  10. Building target: HelloPanda3D  
  11. Invoking: GCC C++(www.cppentry.com) Linker  
  12. g++ -L/usr/lib -L/usr/lib/panda3d -o"HelloPanda3D" ./HelloPanda3D.o -lp3framework   
  13. -lpanda -lpandafx -lpandaexpress -lp3dtoolconfig -lp3dtool -lp3pystub -lp3direct  
  14. Finished building target: HelloPanda3D  

在集成环境中运行HelloPanda3D,运行结果与图2.7类似,Linux下动画视频与配书光盘的Ch2目录Python子目录中的HelloPanda3D-05.mp4类似。
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇2.4 在LINUX C++中运行第一个程序.. 下一篇2.5 在VISUAL C++中运行第一个程..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·用 C 语言或者限制使 (2025-12-25 08:50:05)
·C++构造shared_ptr为 (2025-12-25 08:50:01)
·既然引用计数在做 GC (2025-12-25 08:49:59)
·Java 编程和 c 语言 (2025-12-25 08:19:48)
·. net内存管理宝典这 (2025-12-25 08:19:46)