Build error with /std:c++17

48 views
Skip to first unread message

Jaden Molineux

unread,
Aug 24, 2021, 5:28:34 PM8/24/21
to Crypto++ Users

Hello! I am having a small issue whenever I try to build my application with anything that includes crypto. I have everything on the linker set up correctly.

My project is set to std:c++17

Screenshot_1.png

Jeffrey Walton

unread,
Aug 24, 2021, 6:42:06 PM8/24/21
to Crypto++ Users
It sounds like a problem with the way yo setup the project or the compiler.

The output below uses the Visual Studio 2019 Command Line Tools. It uses the compiler version 19.28.29915 and cryptest.nmake to build from the command line. I modified cryptest.nmake to include the /std:c++17 flag.

**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.9.5
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************

C:\Users\Jeff\cryptopp>nmake /f cryptest.nmake

Microsoft (R) Program Maintenance Utility Version 14.28.29915.0
Copyright (C) Microsoft Corporation.  All rights reserved.

******************************
Platform is x86
******************************

        cl.exe /nologo /W4 /wd4231 /wd4511 /wd4156 /D_MBCS /Zi /TP /GR /EHsc /st
d:c++17 /DNDEBUG /D_NDEBUG /Oi /Oy /O2 /MT /FI sdkddkver.h /FI winapifamily.h /Y
c"pch.h" /Fp"pch.pch" /c pch.cpp
pch.cpp
        cl.exe /nologo /W4 /wd4231 /wd4511 /wd4156 /D_MBCS /Zi /TP /GR /EHsc /st
d:c++17 /DNDEBUG /D_NDEBUG /Oi /Oy /O2 /MT /FI sdkddkver.h /FI winapifamily.h /c
 cryptlib.cpp
cryptlib.cpp
        cl.exe /nologo /W4 /wd4231 /wd4511 /wd4156 /D_MBCS /Zi /TP /GR /EHsc /st
d:c++17 /DNDEBUG /D_NDEBUG /Oi /Oy /O2 /MT /FI sdkddkver.h /FI winapifamily.h /c
 cpu.cpp
cpu.cpp
        cl.exe /nologo /W4 /wd4231 /wd4511 /wd4156 /D_MBCS /Zi /TP /GR /EHsc /st
d:c++17 /DNDEBUG /D_NDEBUG /Oi /Oy /O2 /MT /FI sdkddkver.h /FI winapifamily.h /c
 integer.cpp
integer.cpp
...

Jeff

Cartoon tv

unread,
Aug 25, 2021, 3:54:26 AM8/25/21
to Crypto++ Users
How to conpile or build cryptopp in windows 

Please help can you send detail or build instructions in windows

Jeffrey Walton

unread,
Aug 25, 2021, 4:21:45 AM8/25/21
to Crypto++ Users List
On Wed, Aug 25, 2021 at 3:54 AM Cartoon tv <telugu...@gmail.com> wrote:
>
> How to conpile or build cryptopp in windows
>
> Please help can you send detail or build instructions in windows

The README has instructions for building on various platforms.

The wiki also has instructions for building using different tooling.
Also see https://www.cryptopp.com/wiki/Category:Build_System.

Jeff

Cartoon tv

unread,
Aug 25, 2021, 8:05:29 AM8/25/21
to cryptop...@googlegroups.com
i want to create .pyd file in windows of codelift.h but it gives me errors and when compiling for .so file in ubuntu it's working fine for that samefile. can you help me please

--
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/CAH8yC8mH68WOw22jQRKNj3QviaZZWhZqdjehgGxeOXdekm-XoA%40mail.gmail.com.

Jeffrey Walton

unread,
Aug 25, 2021, 11:53:25 AM8/25/21
to Crypto++ Users List
On Wed, Aug 25, 2021 at 8:05 AM Cartoon tv <telugu...@gmail.com> wrote:
>
> i want to create .pyd file in windows of codelift.h but it gives me errors and when compiling for .so file in ubuntu it's working fine for that samefile. can you help me please

You should probably provide a wrapper DLL on Windows. It will work on
Linux and Unix, too. Also see
https://www.cryptopp.com/wiki/Wrapper_DLL.

Jeff
Reply all
Reply to author
Forward
0 new messages