Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAHbX-00058Z-Nb for pgsql-general@arkaria.postgresql.org; Thu, 02 Nov 2017 15:40:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eAHbX-0002s1-43 for pgsql-general@arkaria.postgresql.org; Thu, 02 Nov 2017 15:40:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eAHbW-0002rj-HX for pgsql-general@postgresql.org; Thu, 02 Nov 2017 15:40:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eAHbT-0002ET-Ln for pgsql-general@postgresql.org; Thu, 02 Nov 2017 15:40:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vA2FeEUj028460; Thu, 2 Nov 2017 11:40:14 -0400 From: Tom Lane To: "Igal @ Lucee.org" cc: Laurenz Albe , pgsql-general Subject: Re: Building tds_fdw Extension for Windows 64bit In-reply-to: <21b32984-8b50-60c2-0263-17aaa3ed61ce@lucee.org> References: <6d349bd6-572b-ce41-0bf7-0fd9baac8af8@lucee.org> <1509609905.3268.3.camel@cybertec.at> <21b32984-8b50-60c2-0263-17aaa3ed61ce@lucee.org> Comments: In-reply-to "Igal @ Lucee.org" message dated "Thu, 02 Nov 2017 08:24:03 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <28458.1509637214.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 02 Nov 2017 11:40:14 -0400 Message-ID: <28459.1509637214@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org "Igal @ Lucee.org" writes: > Any other ideas? It looks to me like MSVC is complaining about the PGDLLEXPORT markings that tds_fdw.c has on the function definitions (not the extern declarations). In the core code we only put PGDLLEXPORT in extern declarations ... so try keeping it in the externs and removing it from the .c file. You may still get warnings that way, which I think you probably have to live with, unless you want to make a .DEF file or use --export-all-symbols as a substitute for PGDLLEXPORT'ing specific functions. For some sorry history around this see https://www.postgresql.org/message-id/flat/A737B7A37273E048B164557ADEF4A58B= 539300BD%40ntex2010a.host.magwien.gv.at regards, tom lane --=20 Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general