Ubuntu 22.04LTS - compilation error using crypto++

Galinette <[email protected]> Tue, 10 Oct 2023 04:35:02 -0700 (PDT)
Newsgroups gmane.comp.encryption.cryptopp
Message-ID <[email protected]>
Hi,

I'm trying to compile an old project using crypto++ under Ubuntu 22.04LTS 
with libcrypto++ version 8.6. Compiler is clang 14

I get an "use of undeclared identifier bswap_32, did you mean __bswap_32 ?

When browsing the source, I find in misc.h:

#if defined(CRYPTOPP_BYTESWAP_AVAILABLE) 
    return bswap_32(value);
...

When browsing the source, everything looks fine. Preprocessor directives 
detect clang, include <byteswap.h> which in turn includes 
<bits/byteswap.h>. The latter defines a __bswap_32 function, and the first 
#defines bswap_32(x) as __bswap32(x).

So I have no clue why compiling fails. Has anyone encountered the problem?

-- 
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/8b981502-0064-4da6-ae29-80d9535f48c6n%40googlegroups.com.