问题描述
cl t2.c /out:full.exe
Microsoft (R) C/C++ Optimizing Compiler Version 19.25.28611 for x86
copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release
t2.c
Microsoft (R) Incremental Linker Version 14.25.28611.0
copyright (C) Microsoft Corporation. All rights reserved.
/out:t2.exe
/out:ut:full.exe
t2.obj
这是怎么回事? ut
名称从何而来?为什么使用ut:full.exe
,但实际上有ut
(零字节文件)?
解决方法
Hans Passant:
选项/ o较旧,不再记录。使用/ link将选项传递给链接器。
解决方案:cl t2.c /link /out:full.exe
。