Re: Compiling C Extension Functions against PostgreSQL 12
От | Adrian Klaver |
---|---|
Тема | Re: Compiling C Extension Functions against PostgreSQL 12 |
Дата | |
Msg-id | 1c360e3f-81c0-e439-ef8f-c7a16ee5e7fd@aklaver.com обсуждение исходный текст |
Ответ на | Re: Compiling C Extension Functions against PostgreSQL 12 (TalGloz <glozmantal@gmail.com>) |
Список | pgsql-general |
On 5/2/20 2:44 PM, TalGloz wrote: > Adrian Klaver-4 wrote >> On 5/2/20 2:18 PM, Tom Lane wrote: >>> TalGloz < > > >> adrian.klaver@ > > The "include $(PGXS)" is defined in the Makefile. After changig the CXXFLAGS Hmm, time to clean my glasses. Have no idea what the below means. > to PG_CXXFLAGS I get: > > *g++ -std=c++17 -fPIC -Wall -Werror -g -O0 -pthread > -I/usr/pgsql-12/include/server -I/usr/local/include > -I/usr/local/include/cppcodec -o seal_diff_cpp.o -c seal_diff_cpp.cpp > g++ -shared -o seal_diff_cpp.so seal_diff_cpp.o -L/usr/pgsql-12/lib > -L/usr/lib64 -L/usr/lib64 -Wl,--as-needed > -Wl,-rpath,'/usr/pgsql-12/lib',--enable-new-dtags -L/usr/local/lib -lseal > -pthread > /usr/lib64/ccache/clang -xc++ -Wno-ignored-attributes -fno-strict-aliasing > -fwrapv -O2 -I. -I./ -I/usr/pgsql-12/include/server > -I/usr/pgsql-12/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 > -I/usr/include -flto=thin -emit-llvm -c -o seal_diff_cpp.bc > seal_diff_cpp.cpp* > In file included from seal_diff_cpp.cpp:23: > In file included from /usr/local/include/seal/seal.h:3: > In file included from /usr/local/include/seal/bigpoly.h:9: > In file included from /usr/local/include/seal/biguint.h:6: > In file included from /usr/local/include/seal/memorypoolhandle.h:6: > In file included from /usr/local/include/seal/util/mempool.h:12: > /usr/local/include/seal/util/locks.h:12:50: error: no template named > 'shared_mutex' in namespace 'std'; did you mean 'shared_ptr'? > using ReaderLock = std::shared_lock<std::shared_mutex>; > ~~~~~^ > /usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/bits/shared_ptr.h:103:11: > note: 'shared_ptr' declared here > class shared_ptr : public __shared_ptr<_Tp> > ^ -- Adrian Klaver adrian.klaver@aklaver.com
В списке pgsql-general по дате отправления: