2008年5月27日 星期二

some error on Visual Studio 2005

4 errors

mfcs80.lib(stdafx.obj) : error LNK2001: unresolved external symbol "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)" (?g_pfnGetThreadACP@ATL@@3P6GIXZA)

mfcs80.lib(stdafx.obj) : error LNK2019: unresolved external symbol __imp__SysFreeString@4 referenced in function "public: __thiscall ATL::CComBSTR::~CComBSTR(void)" (??1CComBSTR@ATL@@QAE@XZ)

Google desktop search
found it in C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib

add C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib\ to Property\Linker\General\Additional Library Directories



build

2 errors

add C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\lib to Linker\Input\Additional Dependencies

1>mfcs80.lib(stdafx.obj) : error LNK2019: unresolved external symbol __imp__SysFreeString@4 referenced in function "public: __thiscall ATL::CComBSTR::~CComBSTR(void)" (??1CComBSTR@ATL@@QAE@XZ)

1>.\Release/AutoMakeCab.exe : fatal error LNK1120: 1 unresolved externals

再從Tools -> Options -> Library files -> 的兩行

C:\WINCE500\PBWorkspaces\CoreOS2443\WINCE500\smdk2443_ARMV4I\cesysgen\sdk\lib\ARMV4I\retail
C:\Program Files\Windows CE Tools\wce500\STANDARDSDK_500\Mfc\Lib\ARMV4I
移到最下面

build OK

看來是受到干擾了

using Visual Studio 2005

General Settings



透過Facebook分享

沒有留言: