On Tuesday, 8 December 2015 06:50:05 UTC, Jeffrey Walton wrote: > > > But when I compile cryptdll, I get the following error: >> >> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild >> .targets(1189,5): warning MSB8012: TargetPath(C:\Users\michn\Documents\ >> Visual Studio 2015\Projects\cryptopp\Win32\DLL_Output\Debug\cryptdll.dll) >> does not match the Linker's OutputFile property value >> (C:\Users\michn\Documents\Visual Studio >> 2015\Projects\cryptopp\Win32\DLL_Output\Debug\cryptopp.dll). This may cause >> your project to build incorrectly. To correct this, please make sure that >> $(OutDir), $(TargetName) and $(TargetExt) property values match the value >> specified in %(Link.OutputFile). >> C:\Program Files >> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1191,5): >> warning MSB8012: TargetName(cryptdll) does not match the Linker's >> OutputFile property value (cryptopp). This may cause your project to >> build incorrectly. To correct this, please make sure that $(OutDir), $( >> TargetName) and $(TargetExt) property values match the value specified in >> %(Link.OutputFile). >> Creating library C:\Users\michn\Documents\Visual Studio 2015\ >> Projects\cryptopp\Win32\DLL_Output\Debug\\cryptopp.lib and object C:\ >> Users\michn\Documents\Visual Studio 2015\Projects\cryptopp\Win32\ >> DLL_Output\Debug\\cryptopp.exp >> Generating code >> Finished generating code >> ucrtd.lib(ucrtbased.dll) : error LNK2005: __crt_debugger_hook already >> defined in MSVCRTD.lib(utility_desktop.obj) >> Win32\DLL_Output\Debug\cryptopp.dll : fatal error LNK1169: one or more >> multiply defined symbols found >> >> What am I doing wrong? I left all other settings default. >> > > Oh I should have recognized this earlier... This is another botched > upgrade provided by VCUpgrade. The tools basically throws away all the path > information that was implicit with the VS2005 project files. Then, the > compiler and linker locate object files in the wrong directory. That broken > tool should be banned since its clear Microsoft is not going to fix it.... > > Indeed. This is exactly the problem I am having trying to build cryptopp 563 on windows 7 using VS2015.
> In this case, unpack vs2010.zip in-place and allow it to over-write the > exiting files. vs2010.zip should be in the cryptopp5.6.3.zip. If not (???), > you can download it from > https://www.cryptopp.com/wiki/Visual_Studio#Downloads . > Hmm. It is the conversion process that creates files that don't work properly. > > ucrtd.lib _might_ need dynamic runtime linking. if it does, then download > vs2010-dynamic.zip and use it instead. You will know if it does because you > will get the multiply defined symbols error again. (But this time, it won't > be due to broken paths). > > Jeff > -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.