| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3649 人关注过本帖
标题:这个错误是什么意思[Error] g++.exe: cannot specify -o with -c or -S and ...
只看楼主 加入收藏
天堂廉价
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2015-1-12
结帖率:0
收藏
 问题点数:0 回复次数:3 
这个错误是什么意思[Error] g++.exe: cannot specify -o with -c or -S and multiple compilati
[Error] g++.exe: cannot specify -o with -c or -S and multiple compilations
搜索更多相关主题的帖子: multiple cannot 
2015-01-13 14:49
xufan
Rank: 8Rank: 8
等 级:蝙蝠侠
威 望:6
帖 子:232
专家分:804
注 册:2008-10-20
收藏
得分:0 
看起来 好像是说-o选项不能和-c或者-S选项一起使用??

~~~~~~我的明天我知道~~~。
2015-01-13 14:52
wp231957
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:神界
等 级:贵宾
威 望:423
帖 子:13688
专家分:53332
注 册:2012-10-18
收藏
得分:0 
man gcc   内容太多了  我都不知到能不能放下:

GCC(1)                                GNU                               GCC(1)
NAME
       gcc - GNU project C and C++ compiler
SYNOPSIS
       gcc [-c|-S|-E] [-std=standard]
           [-g] [-pg] [-Olevel]
           [-Wwarn...] [-pedantic]
           [-Idir...] [-Ldir...]
           [-Dmacro[=defn]...] [-Umacro]
           [-foption...] [-mmachine-option...]
           [-o outfile] [@file] infile...
       Only the most useful options are listed here; see below for the remainder.  g++ accepts mostly the same
       options as gcc.
DESCRIPTION
       When you invoke GCC, it normally does preprocessing, compilation, assembly and linking.  The "overall
       options" allow you to stop this process at an intermediate stage.  For example, the -c option says not to
       run the linker.  Then the output consists of object files output by the assembler.
       Other options are passed on to one stage of processing.  Some options control the preprocessor and others
       the compiler itself.  Yet other options control the assembler and linker; most of these are not
       documented here, since you rarely need to use any of them.
       Most of the command line options that you can use with GCC are useful for C programs; when an option is
       only useful with another language (usually C++), the explanation says so explicitly.  If the description
       for a particular option does not mention a source language, you can use that option with all supported
       languages.
       The gcc program accepts options and file names as operands.  Many options have multi-letter names;
       therefore multiple single-letter options may not be grouped: -dv is very different from -d -v.
       You can mix options and other arguments.  For the most part, the order you use doesn’t matter.  Order
       does matter when you use several options of the same kind; for example, if you specify -L more than once,
       the directories are searched in the order specified.  Also, the placement of the -l option is
       significant.
:

DO IT YOURSELF !
2015-01-13 15:02
wp231957
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
来 自:神界
等 级:贵宾
威 望:423
帖 子:13688
专家分:53332
注 册:2012-10-18
收藏
得分:0 
还有很多很多  没粘贴下

DO IT YOURSELF !
2015-01-13 15:10
快速回复:这个错误是什么意思[Error] g++.exe: cannot specify -o with -c or - ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016725 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved