c++ - 在 C++ 中将 -s 用于 make 命令时,哪些消息不会显示?

标签 c++ makefile

在 c++ 中使用 -s 进行 make 命令时,哪些消息不会显示?

如果 make -s 只显示警告或错误信息?

我试过在 eclipse 的 hello make file 项目中更改 make file,但没有任何区别。

07:49:32 ** 项目 TestMake 的默认配置构建 ** 让所有 g++ -O2 -s -g -Wall -fmessage-length=0 -c -o TestMake.o TestMake.cpp g++ -o TestMake.exe TestMake.o

复制代码

07:49:53 构建完成(耗时 21 秒 855 毫秒)

07:51:50 **** Build of configuration Default for project TestMake ****
make all 
g++ -O2  -g -Wall -fmessage-length=0   -c -o TestMake.o TestMake.cpp
g++ -o TestMake.exe TestMake.o 

07:51:51 构建完成(耗时 732 毫秒)

07:51:50 **** Build of configuration Default for project TestMake ****
make all 
g++ -O2  -g -Wall -fmessage-length=0   -c -o TestMake.o TestMake.cpp
g++ -o TestMake.exe TestMake.o 

07:51:51 Build Finished (took 732ms)

最佳答案

你读过 manual 了吗? ?

‘-s’
‘--silent’
‘--quiet’
Silent operation; do not print the recipes as they are executed.

因此它不会显示食谱,但会显示任何其他输出,包括警告和错误。

关于c++ - 在 C++ 中将 -s 用于 make 命令时,哪些消息不会显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19831512/

相关文章:

makefile - Makefile 中的条件编译

c - 运行 make install 时出错 - 缺少 include/generated/autoconf.h 或 include/config/auto.conf

c++ - 为什么将 boost::swap 中的 swap_impl 移至单独的命名空间?

具有多重继承的 C++ dynamic_cast

c++ - 如何链接到 C++ 中的共享库

c++ - 使用 NetBeans 和 MinGW gcc 编译 c++ 程序时无法运行程序 makefile

编译和链接 32 位架构的 C 程序

c++ - midiOutShortMsg 和 midiOutSetVolume 以立体声输出

c++ - 使用枚举作为模板参数 C++

c++ - 枚举的段错误