Re: Linker errors while creating a PostgreSQL C extension function.

From: Dmitry Igrishin <dmitigr(at)gmail(dot)com>
To: Tal Glozman <glozmantal(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Linker errors while creating a PostgreSQL C extension function.
Date: 2018-08-19 14:28:52
Message-ID: CAAfz9KMkXro2X+uPW6ojVo0NatrUL-vzqjDEY2MNbq5SWjHsRQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

вс, 19 авг. 2018 г. в 16:20, TalGloz <glozmantal(at)gmail(dot)com>:
>
> I'll try it later when I'm home. Is there a reason that you are linking like
> this
>
> $(CXX) -Wl,--no-undefined -shared -o seal_diff_cpp.so $(LDFLAGS) $(LDLIBS)
> seal_diff_cpp.o
>
> And not like this?
>
> $(CXX) -Wl,--no-undefined -shared -o seal_diff_cpp.so seal_diff_cpp.o
> $(LDFLAGS) $(LDLIBS)
If I recall correctly there were some problems with ordering arguments
of the linker that are specified upon calling g++.
So it is better to specify such arguments in the rest of the command.
But probably this problem is already solved and there is no difference
anymore.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2018-08-19 14:54:32 Re: Linker errors while creating a PostgreSQL C extension function.
Previous Message TalGloz 2018-08-19 13:20:20 Re: Linker errors while creating a PostgreSQL C extension function.