ubuntu g++ 用法

本文详细介绍了在Ubuntu系统中如何使用g++编译器,包括各种选项的用法,如编译、预处理、链接等操作,以及如何传递参数给汇编器、预处理器和链接器。此外,还涵盖了显示版本信息、搜索路径和配置编译过程的选项。
摘要由CSDN通过智能技术生成

Usage: g++ [options] file…
Options:
-pass-exit-codes Exit with highest error code from a phase.
–help Display this information.
–target-help Display target specific command line options.
–help={common|optimizers|params|target|warnings|[^]{joined|separate|undocumented}}[,…].
Display specific types of command line options.
(Use ‘-v --help’ to display command line options of sub-processes).
–version Display compiler version information.
-dumpspecs Display all of the built in spec strings.
-dumpversion Display the version of the compiler.
-dumpmachine Display the compiler’s target processor.
-print-search-dirs Display the directories in the compiler’s search path.
-print-libgcc-file-name Display the name of the compiler’s companion library.
-print-file-name= Display the full path to library .
-print-prog-name= Display the full path to compiler component .
-print-multiarch

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值