[阅读: 573] 2005-10-13 10:01:32
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