Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enpAQ-00008q-9q for pgsql-general@arkaria.postgresql.org; Mon, 19 Feb 2018 17:23:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enpAO-00042h-Vh for pgsql-general@arkaria.postgresql.org; Mon, 19 Feb 2018 17:23:52 +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 1enpAO-00042X-Ku for pgsql-general@lists.postgresql.org; Mon, 19 Feb 2018 17:23:52 +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.89) (envelope-from ) id 1enpAM-0004dw-0k for pgsql-general@lists.postgresql.org; Mon, 19 Feb 2018 17:23:51 +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 w1JHNmD6024868; Mon, 19 Feb 2018 12:23:48 -0500 From: Tom Lane To: Aditya Nugraha cc: pgsql-general@lists.postgresql.org Subject: Re: Error when compiling postgresql 9.6.7 with Visual Studio 15.5.6 In-reply-to: References: Comments: In-reply-to Aditya Nugraha message dated "Mon, 19 Feb 2018 23:57:20 +0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24866.1519061028.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 19 Feb 2018 12:23:48 -0500 Message-ID: <24867.1519061028@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Aditya Nugraha writes: > When trying to compile postgresql 9.6.7 with Visual Studio 15.5.6, > i am getting errors at these following line : > src/backend/utils/adt/pg_locale.c(927): error C2037: left of > 'locale_name' specifies undefined struct/union '__crt_lo > cale_data' [C:\Users\nameless\Documents\Works\Compiling\pgwininstall\bui= lddir\postgresql\postgresql-9.6.7\postgres.vcxpr > oj] > src/backend/utils/adt/pg_locale.c(928): error C2198: 'wchar2char': > too few arguments for call [C:\Users\nameless\Docum > ents\Works\Compiling\pgwininstall\builddir\postgresql\postgresql-9.6.7\p= ostgres.vcxproj] This was previously discussed here: https://www.postgresql.org/message-id/flat/CANFyU959RRvAqmrGvLor%3Dgo3PSi4= LdYcjDw8TQ6YRvzpouZrog%40mail.gmail.com Apparently Microsoft have changed their APIs in VS2015. Somebody needs to figure out what's the approved way now to get the locale name out of a _locale_t object. regards, tom lane