我正在使用 cmake。
我试过了
-fatal-warnings
(这里提到)
-fatal_warnings
(与 一起提到man ld
)
那些应该与 一起使用-W
吗?
我希望整个项目中的所有链接器警告都是错误的。
我得到的警告是:
ld: warning: ignoring file libvst2sdk.a, building for macOS-arm64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x23 0x31 0x2F 0x32 0x30 0x20 0x20 0x20 )