I compiled static lib for cryptopp just fine for both debug and release.
Next I wanted DLL, so I edited ALL configurations to use /MD and /MDd
runtime libraries and tried to compile.
cryptlib compiles fine, I can even see the .lib files in Release and Debug
folders.
I tried compiling also DLL Import Release and DLL Import Debug -> also
fine, output libs in /DLL_Output
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.
--
--
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [email protected].
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 [email protected].
For more options, visit https://groups.google.com/d/optout.