中国开发网: 论坛: 程序员情感CBD: 贴子 213780
holly
错了
1. /FD 的作用是 "Generate file dependencies"

2. 看实证:

N:\temp>type x.cpp
int main()
{
return printf("123\n");
}

N:\temp>cl /c x.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

x.cpp
x.cpp(3) : error C3861: 'printf': identifier not found, even with argument-depen
dent lookup

N:\temp>cl /c /FD x.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

x.cpp
x.cpp(3) : error C3861: 'printf': identifier not found, even with argument-depen
dent lookup

N:\temp>cl /c /I"H:\Program Files\Microsoft Visual Studio\VC98\include" /FD x.cp
p
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

x.cpp
x.cpp(3) : error C3861: 'printf': identifier not found, even with argument-depen
dent lookup

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录