gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 07:18:47 24 4
gpt4 key购买 nike

在 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.cppg++ -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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com