Re: Compiling C Extension Functions against PostgreSQL 12

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Compiling C Extension Functions against PostgreSQL 12
Дата
Msg-id 1610.1588454290@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Compiling C Extension Functions against PostgreSQL 12  (TalGloz <glozmantal@gmail.com>)
Ответы Re: Compiling C Extension Functions against PostgreSQL 12
Re: Compiling C Extension Functions against PostgreSQL 12
Список pgsql-general
TalGloz <glozmantal@gmail.com> writes:
> I dont understand why the output for Postgres  12 
> g++ -Wall -Wpointer-arith -Wendif-labels -Wmissing-format-attribute
> -Wformat-security -fno-strict-aliasing -fwrapv -O2 -o seal_diff_cpp.o -c
> seal_diff_cpp.cpp
> seal_diff_cpp.cpp:2:10: fatal error: postgres.h: No such file or directory
>     2 | #include "postgres.h"
>       |          ^~~~~~~~~~~~

> looks different form the ones of Postgres 10

Looking at your Makefile, it seems to be expecting that CXXFLAGS will
be honored in the build, and it isn't being.

As far as I can see from pgxs.mk, you're supposed to spell that
PG_CXXFLAGS.  Probably, it accidentally worked to do it the other
way in v10, but no longer does, likely as a result of the fact that
there's now some minimal amount of C++ code in core PG.

I'm a little dubious about whether overriding CXX is a good idea now, too.
(Likely the core setting is the same, but if it were pointing at a
different compiler that could cause trouble.)

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: TalGloz
Дата:
Сообщение: Re: Compiling C Extension Functions against PostgreSQL 12
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Compiling C Extension Functions against PostgreSQL 12