On Mon, Jan 15, 2018 at 1:59 PM,  <[email protected]> wrote:
> What you mean by "entire build process"? I have installed CryptoPP from
> Fedora repos (5.6.3), then for build I do g++ main.cpp -o main -std=c++17
> -lcryptopp. Nothing more. I don't use CMake and Make for this program yet.
> The error I get is pasted on Pastebin.

Fedora does not build with -std=c++17. You have to build with the same
CFLAGS and same CXXFLAGS as the library was built with.

First, visit https://admin.fedoraproject.org/pkgdb/package/rpms/cryptopp/
. Second, click on "Package Source" and it take you to
http://pkgs.fedoraproject.org/cgit/rpms/cryptopp.git/ . Third, click
on "Tree" and it takes you to
http://pkgs.fedoraproject.org/cgit/rpms/cryptopp.git/tree/ . Finally,
click on "cryptopp.pc" and it takes you to
http://pkgs.fedoraproject.org/cgit/rpms/cryptopp.git/tree/cryptopp.pc
.

The *.pc is the package config file. It is located at
/usr/local/lib64/pkgconfig/cryptopp.pc on your system. Notice it does
not use the flags you are using. Related, why you have to use Cflags
(and not Cxxflags), see
https://lists.freedesktop.org/archives/pkg-config/2017-November/001087.html
.

The first thing you should do it try again, but this time without -std=c++17 .

Jeff

-- 
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