Re: Build error with /std:c++17

Jeffrey Walton <[email protected]>
Newsgroups gmane.comp.encryption.cryptopp
Message-ID <[email protected]>

On Tuesday, August 24, 2021 at 5:28:34 PM UTC-4 [email protected] wrote:

> 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
> [image: Screenshot_1.png]


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

-- 
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].
To view this discussion on the web visit https://groups.google.com/d/msgid/cryptopp-users/6a214008-c1b7-46de-9d18-1c29285201f2n%40googlegroups.com.
Screenshot_1.png (image/png, 21.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.