You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
#include <iostream>
#include <cryptopp/hex.h>
#include <cryptopp/sha.h>
#include <cryptopp/filters.h>
int main() {
std::string in, out;
in = "test";
CryptoPP::SHA256 hashFilter;
CryptoPP::StringSource(in, true, new CryptoPP::HashFilter(hashFilter, new CryptoPP::HexEncoder(new CryptoPP::StringSink(out))));
std::cout << out << "\n";
return 0;
}
E:\projects\cpp-utils\cryptopp-test\build>cmake ..
-- Building for: Visual Studio 15 2017
-- The C compiler identification is MSVC 19.13.26129.0
-- The CXX compiler identification is MSVC 19.13.26129.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.13.26128/bin/Hostx86/x86/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found CryptoPP: C:\libs\cryptopp700 (found version "7.0.0")
-- Configuring done
WARNING: Target "cryptopp-test" requests linking to directory "C:\libs\cryptopp700". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "cryptopp-test" requests linking to directory "C:\libs\cryptopp700". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "cryptopp-test" requests linking to directory "C:\libs\cryptopp700". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "cryptopp-test" requests linking to directory "C:\libs\cryptopp700". Targets may link only to libraries. CMake is dropping the item.
-- Generating done
-- Build files have been written to: E:/projects/cpp-utils/cryptopp-test/build
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:
CMakeLists.txt:
However if I'll try to build this code (below) using the same steps (and CMakeList.txt) as above, everything is fine.
I'm really confused. Did I build the CryptoPP wrong (if so, then why I'm able to print the key lenghts?)?
The text was updated successfully, but these errors were encountered: