CPPFLAGS is
supposed to be for flags for the C PreProcessor; CXXFLAGS is
for flags for the C++ compiler.
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++.
本文解释了CPPFLAGS、CFLAGS及CXXFLAGS等编译器标志的区别与用途。CPPFLAGS用于C预处理器,CFLAGS仅在编译链接C时使用,而CXXFLAGS则专门针对C++编译与链接。
7686

被折叠的 条评论
为什么被折叠?



