本文介绍了GNU Make中CPPFLAGS和CXXFLAGS之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在GNU Make中CPPFLAGS和CXXFLAGS有什么区别?
What's the difference between CPPFLAGS and CXXFLAGS in GNU Make?
推荐答案
CPPFLAGS
应该用于 C P re P 处理器; CXXFLAGS
用于C ++编译器的标志.
CPPFLAGS
is supposed to be for flags for the C PreProcessor; CXXFLAGS
is for flags for the C++ compiler.
make中的默认规则(无论如何在我的机器上)都会将CPPFLAGS
传递给几乎所有内容,CFLAGS
仅在编译和链接C时传递,而CXXFLAGS
仅在编译和链接C ++时传递
The default rules in make (on my machine, at any rate) pass CPPFLAGS
to just about everything, CFLAGS
is only passed when compiling and linking C, and CXXFLAGS
is only passed when compiling and linking C++.
这篇关于GNU Make中CPPFLAGS和CXXFLAGS之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!