Re: JIT compiling with LLVM v9.0

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: JIT compiling with LLVM v9.0
Дата
Msg-id CAEepm=2bEcuV7jsjAGDVNfr31OHzMhkyKcsUG4A=WRDQ=Ng=3g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: JIT compiling with LLVM v9.0  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: JIT compiling with LLVM v9.0
Список 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 по дате отправления:

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: JIT compiling with LLVM v9.0
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: JIT compiling with LLVM v9.0