为什么Cygwin的GCC显示每个文件的第一行? [英] Why does Cygwin's GCC display the first line of every file?
本文介绍了为什么Cygwin的GCC显示每个文件的第一行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我不是一个常规的Cygwin用户。我安装了Cygwin和Cygwin64来测试提议的补丁。
I'm not a regular Cygwin user. I installed Cygwin and Cygwin64 for testing proposed patches.
下面是一个典型的make的输出:
Here's the output of a typical make:
User@windows-7-x64 ~/cryptopp
$ make
g++ -DNDEBUG -g -O2 -fPIC -march=native -pipe -c shacal2.cpp
shacal2.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
// shacal2.cpp - by Kevin Springle, 2003
^
g++ -DNDEBUG -g -O2 -fPIC -march=native -pipe -c seed.cpp
seed.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
// seed.cpp - written and placed in the public domain by Wei Dai
^
g++ -DNDEBUG -g -O2 -fPIC -march=native -pipe -c shark.cpp
shark.cpp:1:0: warning: -fPIC ignored for target (all code is position independent)
// shark.cpp - written and placed in the public domain by Wei Dai
^
...
Cygwin的make显示其编译的每个文件的第一行。
Cygwin's make displays the first line of every file it compiles.
为什么Cygwin的make显示每个文件的第一行?
Why does Cygwin's make display the first line of every file? How can I stop the behavior?
推荐答案
输出是由于关于 -fPIC
命令行选项,就像它说的。从您的makefile的 CXXFLAGS
(或任何地方)移除 -fPIC
选项,它会消失。
The output is due to the warning about the -fPIC
command line option, just as it says. Remove the -fPIC
option from your makefile's CXXFLAGS
(or wherever) and it will go away.
这篇关于为什么Cygwin的GCC显示每个文件的第一行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文