gpt4 book ai didi

c++ - 在 GCC 上发出警告

转载 作者:太空狗 更新时间:2023-10-29 20:17:53 27 4
gpt4 key购买 nike

有没有一种方法可以在 GCC 中将字符串消息作为警告传递(但不是普通消息)?

最佳答案

(谷歌搜索:)

#error 有效并且需要,因为标准要求它。 gcc 也有 #warning

关于c++ - 在 GCC 上发出警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5606482/

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