On Tuesday, May 1, 2018 at 8:19:46 AM UTC-4, [email protected] wrote:
>
> Firstly asked at: https://github.com/weidai11/cryptopp/issues/651
>
>
> As the title says, everything failing to build. I have this code (below), 
> and I'm not able to build it (logs below the code). I use CMake to create 
> the Visual Studio solution file. I also tried version 6.1.0 and 6.0.0, same 
> problem occurs.
>
>
> Steps to build CryptoPP: download CryptoPP source code (from website) -> 
> open cryptest.sln -> Retarget solution (to use my version of Windows SDK - 
> 10.0.16299.0) -> Ok -> Batch Build -> tick cryptlib - Release|Win32 -> Build
>
>
> cryptopp-test.cpp:
>
>
> https://gist.github.com/zavodnyrichard/f51ec376cda91c9732ac822bab26189b#file-cryptopp-test-cpp
>
>
> CMakeLists.txt:
>
>
> https://gist.github.com/zavodnyrichard/f51ec376cda91c9732ac822bab26189b#file-cmakelists-txt
>
>
> $cmake ..
>
>
> https://gist.github.com/zavodnyrichard/f51ec376cda91c9732ac822bab26189b#file-cmake
>
>
> $msbuild cryptopp-test.sln
>
>
> https://gist.github.com/zavodnyrichard/f51ec376cda91c9732ac822bab26189b#file-msbuild-cryptopp-test-sln
>
>
> However if I'll try to build this code (below) using the same steps (and 
> CMakeList.txt) as above, everything is fine.
>
>
> https://gist.github.com/zavodnyrichard/f51ec376cda91c9732ac822bab26189b#file-cryptopp-test-cpp-works-well
>

According to :

C:\Program Files (x86)\Microsoft Visual 
Studio\2017\Community\VC\Tools\MSVC\14.13.26128\bin\HostX86\x86\link.exe 
/ERR 
ORREPORT:QUEUE 
/OUT:"E:\projects\cpp-utils\cryptopp-test\build\Debug\cryptopp-test.exe" 
/INCREMENTAL /NOLOGO kernel32 
.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib 
uuid.lib comdlg32.lib advapi32.lib /MANIFES 
T /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG 
/PDB:"E:/projects/cpp-utils/cryptopp-test/ 
build/Debug/cryptopp-test.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE 
/NXCOMPAT /IMPLIB:"E:/projects/cpp-utils/cryp 
topp-test/build/Debug/cryptopp-test.lib" /MACHINE:X86 /SAFESEH /machine:X86 
"cryptopp-test.dir\Debug\cryptopp-test.o 
bj"

It looks like you are trying to link against a DLL based on the /IMPLIB. 
That usually ends badly when using the Crypto++ DLL because it is a FIPS 
DLL and missing a lot of classes. Also see 
https://www.cryptopp.com/wiki/FIPS_DLL .

Usually you want to link against the static archive.

Jeff
Link: 
 

-- 
You received this message because you are subscribed to "Crypto++ Users". More 
information about Crypto++ and this group is available at 
http://www.cryptopp.com and 
http://groups.google.com/forum/#!forum/cryptopp-users.
--- 
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.

Reply via email to