Здравствуйте, KDmitry, Вы писали:
KD>Привет!
KD>Подскажите, как собрать log4cpp в 2003-й студии?
KD>Скачал с soursforge последнюю версию(1.0), ошибка Custom Build Step, хотя в настройках проекта строка пустая...
KD>Может, где-то есть проект уже в 2003?
KD>Буду благодарен за любые идеи!
В log4cpp.vcproj вместо инвалидных путей в Кастом билд прописал:
<FileConfiguration Name="Debug|Win32">
<Tool Name="VCCustomBuildTool" CommandLine="if not exist $(OutDir) md $(OutDir)
"$(DevEnvDir)..\Tools\Bin\mc.exe" -h $(OutDir) -r $(OutDir) $(ProjectDir)..\$(InputName).mc
"$(DevEnvDir)..\..\vc7\Bin\RC.exe" -r -fo $(OutDir)\$(InputName).res $(OutDir)\$(InputName).rc
"$(DevEnvDir)..\..\VC7\Bin\link.exe" /MACHINE:IX86 -dll -noentry -out:$(OutDir)\NTEventLogAppender.dll $(OutDir)\$(InputName).res"
Outputs="$(OutDir)\NTEventLogAppender.dll"/>
</FileConfiguration>
<FileConfiguration Name="Release|Win32">
<Tool Name="VCCustomBuildTool" CommandLine="if not exist $(OutDir) md $(OutDir)
"$(DevEnvDir)..\Tools\Bin\mc.exe" -h $(OutDir) -r $(OutDir) $(ProjectDir)..\$(InputName).mc
"$(DevEnvDir)..\..\vc7\Bin\RC.exe" -r -fo $(OutDir)\$(InputName).res $(OutDir)\$(InputName).rc
"$(DevEnvDir)..\..\VC7\Bin\link.exe" /MACHINE:IX86 -dll -noentry -out:$(OutDir)\NTEventLogAppender.dll $(OutDir)\$(InputName).res"
Outputs="$(OutDir)\NTEventLogAppender.dll"/>
</FileConfiguration>
теперь либа собирается, но тестовый проект и другие выдают анрезолвед экстернал...
testMain error LNK2019: unresolved external symbol "public: class std::_Tree<class std::_Tmap_traits<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,struct std::less<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > >,0> >::const_iterator __thiscall log4cpp::FactoryParams::find(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?find@FactoryParams@log4cpp@@QBE?AVconst_iterator@?$_Tree@V?$_Tmap_traits@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@U?$less@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V12@@std@@@2@$0A@@std@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@5@@Z) referenced in function "public: class log4cpp::details::required_params_validator const & __thiscall log4cpp::details::required_params_validator::operator()<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)const " (??$?RV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@required_params_validator@details@log4cpp@@QBEABV012@PBDAAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
Кто бы подсказал как это пофиксить...