Re: JIT compiling with LLVM v9.0 - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: JIT compiling with LLVM v9.0
Date
Msg-id CAEepm=2bEcuV7jsjAGDVNfr31OHzMhkyKcsUG4A=WRDQ=Ng=3g@mail.gmail.com
Whole thread Raw
In response to Re: JIT compiling with LLVM v9.0  (Jeff Davis <pgsql@j-davis.com>)
Responses Re: JIT compiling with LLVM v9.0
List pgsql-hackers
On Fri, Feb 2, 2018 at 7:06 PM, Jeff Davis <pgsql@j-davis.com> wrote:
> /usr/include/c++/5/cmath:505:22: error: conflicting declaration of C
> function ‘long double
> ...
> /usr/include/c++/5/cmath:926:3: error: template with C linkage

I suspect you can fix these with this change:

+#ifdef __cplusplus
+}
+#endif
 #include <llvm-c/Types.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif

... in llvmjit.h.

--
Thomas Munro
http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: JIT compiling with LLVM v9.0
Next
From: Jeff Davis
Date:
Subject: Re: JIT compiling with LLVM v9.0