Mfc application building in defug mode but not in release mode?
Mfc application is showing following error when buil in release mode
Error 152 error LNK2019: unresolved external symbol SHGetPathFromIDList referenced in function "public: class ATL::CStringT > > __cdecl CCopyFile::DoBrowse(void)" (?DoBrowse@CCopyFile@@QAA?AV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsOS@_W@ATL@@@@@ATL@@XZ) CopyFile.obj
Error 153 error LNK2001: unresolved external symbol SHGetPathFromIDList IflawFileDialog.obj Error 154 error LNK2001: unresolved ext开发者_JS百科ernal symbol SHGetPathFromIDList NewFile.obj Error 155 error LNK2019: unresolved external symbol SHBrowseForFolder referenced in function "public: class ATL::CStringT > > __cdecl CCopyFile::DoBrowse(void)" (?DoBrowse@CCopyFile@@QAA?AV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsOS@_W@ATL@@@@@ATL@@XZ) CopyFile.obj
Compare the debug/release linker input dependencies for your project. The release one is probably missing shell32.lib
精彩评论