Re: JIT compiling with LLVM v9.0
| От | Jeff Davis |
|---|---|
| Тема | Re: JIT compiling with LLVM v9.0 |
| Дата | |
| Msg-id | CAMp0ubeEY2EdyibPEW3C+NZY=fMbRpOT=BrWxMCgyComC8xpmg@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: JIT compiling with LLVM v9.0 (Thomas Munro <thomas.munro@enterprisedb.com>) |
| Ответы |
Re: JIT compiling with LLVM v9.0
|
| Список | pgsql-hackers |
On Thu, Feb 1, 2018 at 10:09 PM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:
> 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.
Thanks! That worked, but I had to remove the "-stdlib=libc++" also,
which was causing me problems.
Regards,
Jeff Davis
В списке pgsql-hackers по дате отправления: