MFC + Visual Studio 2010 + AppUp SDK 1.1.1 = massive LNK error?

MFC + Visual Studio 2010 + AppUp SDK 1.1.1 = massive LNK error?

Fred Liang's picture
1st post here :) I am getting these link error when trying to incoporate AppUp SDK 1.1.1 to my MFC application. To simplify things, I created a simple single document MFC application, which does nothing but opening a blank window with standard menu item. well, i got the same massive number of LNK warning and error, identical to the errors in my MFC application. I extracted a few here: ------------------------------------------------- Adpcppfd.lib(Logger.obj) : warning LNK4217: locally defined symbol ?empty@?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QBE_NXZ (public: bool __thiscall std::basic_string,class std::allocator >::empty(void)const ) imported in function "private: bool __thiscall com::intel::adp::log::LoggerStream::OpenLog(void)" (?OpenLog@LoggerStream@log@adp@intel@com@@AAE_NXZ) 1>Adpcppfd.lib(AdpRuntimeException.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_streambuf >::_Unlock(void)" (__imp_?_Unlock@?$basic_streambuf@_WU?$char_traits@_W@std@@@std@@QAEXXZ) 1>Adpcppfd.lib(Logger.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_ostringstream,class std::allocator >::basic_ostringstream,class std::allocator >(int)" (__imp_??0?$basic_ostringstream@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@QAE@H@Z) referenced in function "public: __thiscall com::intel::adp::log::LoggerStream::LoggerStream(int)" (??0LoggerStream@log@adp@intel@com@@QAE@H@Z) ---- There were total of 32 LNK errors, (excluding LNK4217 warnings)---- The simple test MFC application uses: - MFC in a Shared DLL - Not using ATL - Use Unicode character set - Code Generation: Run-time library: Multi-thread debug dll (/MDd) - Linker Input additional dependencies: Adpcorevc10d.lib;Adpcppfd.lib;Psapi.lib;Shlwapi.lib;%(AdditionalDependencies) - Ignore all default libraries: NO, (also tried YES, gets even more lnk errors) Has any one run into the same problem before? If so, what is the solution cheers
3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Fred Liang's picture

2nd post here :)

Nevermind, I have worked out what the problem is.

Turns out there is a defect in the Developer Guide document. For visual studio 2010, you need to include Adpcppfvc10d.lib. The DevGuide tells people to include Adpcppfd.lib, which is a VS2008 lib.

BrianDevArch's picture

Good catch, be sure to change your GUID to your assigned value (Not the debug GUID) when building your final project to submit for validation.

Login to leave a comment.