在做今日插件的时候,添加网络层,可即使我添加了 #include <Ras.h> #include <Connmgr.h> #pragma comment ( lib, "Cellcore.lib" ) #include <Ras.h> #include <Connmgr.h> #pragma comment ( lib, "Cellcore.lib" ) 还是有下面的error: 1>ConnectManager.obj : error LNK2019: unresolved external symbol ConnMgrConnectionStatus referenced in function "private: int __cdecl ConnectManager::isConnectedNetwork(void)" (?isConnectedNetwork@ConnectManager@@AAAHXZ) 1>ConnectManager.obj : error LNK2019: unresolved external symbol ConnMgrEstablishConnectionSync referenced in function "private: int __cdecl ConnectManager::EstablishConnectionImpl(void)" (?EstablishConnectionImpl@ConnectManager@@AAAHXZ) 1>ConnectManager.obj : error LNK2019: unresolved external symbol ConnMgrReleaseConnection referenced in function "private: void __cdecl ConnectManager::CloseAllConnection(void)" (?CloseAllConnection@ConnectManager@@AAAXXZ) 1>Windows Mobile 5.0 Pocket PC SDK (ARMV4I)/Debug/memwatcher.dll : fatal error LNK1120: 3 unresolved externals 工程属性linker->input->Ignore all default libraries->选NO里面去掉/NODEFAULTLIB就ok啦。" 或者linker->input->Additional Dependencies 中添加Cellcore.lib。