Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frN6J-0006uf-BB for pgsql-general@arkaria.postgresql.org; Sun, 19 Aug 2018 12:46:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1frN6H-0005KH-BJ for pgsql-general@arkaria.postgresql.org; Sun, 19 Aug 2018 12:46:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1frN6H-0005K4-3m for pgsql-general@lists.postgresql.org; Sun, 19 Aug 2018 12:46:33 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1frN6F-0003Zl-BE for pgsql-general@postgresql.org; Sun, 19 Aug 2018 12:46:32 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 6C0BDEA3A270 for ; Sun, 19 Aug 2018 05:46:30 -0700 (MST) Date: Sun, 19 Aug 2018 05:46:30 -0700 (MST) From: TalGloz To: pgsql-general@postgresql.org Message-ID: <1534682790440-0.post@n3.nabble.com> In-Reply-To: References: <1534676183995-0.post@n3.nabble.com> <1534680422044-0.post@n3.nabble.com> Subject: Re: Linker errors while creating a PostgreSQL C extension function. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk OK, I've changed my line to LDFLAGS = -L$(INCLUDE_SEAL_LIB) -lseal -lpthread In my Makefile this command is written like this (line numbers are just for orientation) 1: seal_diff_cpp.so: seal_diff_cpp.o 2: $(CXX) -Wl,--no-undefined -shared -o seal_diff_cpp.so seal_diff_cpp.o $(LDFLAGS) 3: Or do you mean that it suppose to be like that? 1: seal_diff_cpp.so: seal_diff_cpp.o $(CXX) -Wl,--no-undefined -shared -o seal_diff_cpp.so seal_diff_cpp.o $(LDFLAGS) -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html