c++ - How to resolve differences in methods in the .lib file? -
i trying 3rd party library work code. have source library, , have verified build options match own build options, have not gone though source code learn doing.
my code calls line value m_jsonvalroot;
gives me following linking errors:
linking... 1>jsonwrapper.obj : error lnk2019: unresolved external symbol "public: __cdecl json::value::~value(void)" (??1value@json@@qaa@xz) referenced in function "public: class atl::cstringt<wchar_t,class strtraitmfc_dll<wchar_t,class atl::chtraitsos<wchar_t> > > __cdecl json::cjsonwrapper::runtest(class atl::cstringt<wchar_t,class strtraitmfc_dll<wchar_t,class atl::chtraitsos<wchar_t> > >)" (?runtest@cjsonwrapper@json@@qaa?av?$cstringt@_wv?$strtraitmfc_dll@_wv?$chtraitsos@_w@atl@@@@@atl@@v34@@z) 1>jsonwrapper.obj : error lnk2019: unresolved external symbol "public: __cdecl json::value::value(int)" (??0value@json@@qaa@h@z) referenced in function "public: class atl::cstringt<wchar_t,class strtraitmfc_dll<wchar_t,class atl::chtraitsos<wchar_t> > > __cdecl json::cjsonwrapper::runtest(class atl::cstringt<wchar_t,class strtraitmfc_dll<wchar_t,class atl::chtraitsos<wchar_t> > >)" (?runtest@cjsonwrapper@json@@qaa?av?$cstringt@_wv?$strtraitmfc_dll@_wv?$chtraitsos@_w@atl@@@@@atl@@v34@@z) 1>windows mobile 6.5.3 standard dtk (armv4i)\debug\ccrdex_ui.exe : fatal error lnk1120: 2 unresolved externals
i ran dumpbin on .lib file, , found function defined as:
section header #c7 .text name 0 physical address 0 virtual address 194 size of raw data 22345 file pointer raw data (00022345 000224d8) 224d9 file pointer relocation table 0 file pointer line numbers 12 number of relocations 0 number of line numbers 60501020 flags code comdat; sym= "public: __thiscall json::value::value(enum json::valuetype)" (??0value@json@@qae@w4valuetype@1@@z) 16 byte align execute read
i attempted resolve changing method declaration in headder file from: value( valuetype type = nullvalue );
__thiscall value( valuetype type = nullvalue );
, had no impact on linker.
i building project in visual studio 2008 using mfc in shared dll, using unicode, , building windows mobile 6.5.3
what steps can take reslove linking issues?
i did forgetful when building lib files.
i accidently building win32 when needed building mobile device.
Comments
Post a Comment