2011-07-06 71 views
0

我最近安裝了Windows Server 2003 R2以訪問ATL頭文件和庫文件。我在Visual C++ 2008 Express中設置了include和庫路徑,以便用cl.exe編譯ATL代碼。當我在VC++ 2008 Express中編譯解決方案時。出現以下錯誤消息。使用VC++ 2008 Express進行ATL開發

 
    d:\programs\psdk windows sever 2003\include\atl\atlbase.h(513) : warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 

    d:\programs\microsoft visual studio 9.0\vc\include\stdio.h(358) : see declaration of '_vsnprintf' 

    d:\programs\psdk windows sever 2003\include\atl\atlbase.h(537) : warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 

    d:\programs\microsoft visual studio 9.0\vc\include\stdio.h(358) : see declaration of '_vsnprintf' 

    d:\programs\psdk windows sever 2003\include\atl\atlbase.h(561) : warning C4996: '_vsnwprintf': This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 

    d:\programs\microsoft visual studio 9.0\vc\include\wchar.h(719) : see declaration of '_vsnwprintf' 

    d:\programs\psdk windows sever 2003\include\atl\atlbase.h(584) : warning C4996: '_vsnwprintf': This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 

    d:\programs\microsoft visual studio 9.0\vc\include\wchar.h(719) : see declaration of '_vsnwprintf' 
    Compiling manifest to resources... 
    Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1 
    Copyright (C) Microsoft Corporation. All rights reserved. 
    Linking... 
    LINK : fatal error LNK1104: cannot open file 'atlthunk.lib' 

任何幫助將是值得...

+0

拼寫錯誤的「服務器」。 –

+1

[如何將WTL和ATL添加到visual studio C++ express 2008]可能的重複(http://stackoverflow.com/questions/71659/how-to-add-wtl-and-atl-to-visual-studio-c -express-2008) –

回答

-1

1.find 'atlthunk.lib' 整個項目, 如發現 '的#pragma評論(LIB, 「atlthunk.lib」)',並刪除它。

2. project setting link -> input->add-on dependency, remove 'atlthunk.lib'

+0

這個答案有點模糊。並不是所有人都能理解它的作用,以及它是如何解決問題的。爲了後人(以及新手用戶)的緣故,你可以多解釋一下? :) –

相關問題