From 710185dec63700d073c6fd24101730b9f9b889e5 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Sun, 7 Oct 2018 19:09:28 -0400 Subject: Explicitly link C++ standard library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This library is a C++ library, but it will be linked by a C compiler. Explicitly specify libstdc++ as a library dependency so linking will succeed. This is somewhat of a stopgap; in the long term, the build system should figure out whether you’re linking against libstdc++ or libc++ and stick the correct one in lib.urp. --- src/lib.urp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.urp b/src/lib.urp index 68c99eb..5c6203b 100644 --- a/src/lib.urp +++ b/src/lib.urp @@ -1,5 +1,5 @@ ffi hashFFI include hashFFI.h -link -lurweb_crypto_hash_openssl -lcrypto +link -lurweb_crypto_hash_openssl -lcrypto -lstdc++ hash -- cgit v1.2.3