那位高手能指点g++的用法?

saulce 2001-08-10 07:36:47
...全文
55 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
saulce 2001-08-15
  • 打赏
  • 举报
回复
谢谢,谢谢两位了。
tbird 2001-08-12
  • 打赏
  • 举报
回复
if you have several c++ file and want to compile them together, you can write a Makefile. You can compile them seperately too, use : g++ -c *.cpp to get the object files and then use: g++ -o * *.o to get the executable file.
myname_xie 2001-08-11
  • 打赏
  • 举报
回复
man 一下就知道怎么用了啊 man g++
g++
-c 生成目标文件
-o 生成可执行文件
-I 头文件所在路径
-L 库文件所在路径
-l 要连接的库文件的名字
-d 用字符串‘1’定义宏
详细信息参照手册吧

15,446

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧