pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Aditya Nugraha <vortexilation@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Error when compiling postgresql 9.6.7 with Visual Studio 15.5.6
Date: Mon, 19 Feb 2018 12:23:48 -0500
Message-ID: <24867.1519061028@sss.pgh.pa.us> (raw)
In-Reply-To: <CAL5LfdS4Z7XjOZhtXs8__7nZnRWsGVixSSYY4ci8dshjokF1+A@mail.gmail.com>
References: <CAL5LfdS4Z7XjOZhtXs8__7nZnRWsGVixSSYY4ci8dshjokF1+A@mail.gmail.com>

Aditya Nugraha <vortexilation@gmail.com> 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\builddir\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\postgres.vcxproj]

This was previously discussed here:

https://www.postgresql.org/message-id/flat/CANFyU959RRvAqmrGvLor%3Dgo3PSi4LdYcjDw8TQ6YRvzpouZrog%40m...

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




view thread (6+ messages)  latest in thread

Message-ID: <24867.1519061028@sss.pgh.pa.us>
Permalink:  ../24867.1519061028@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24867.1519061028@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, vortexilation@gmail.com
  Subject: Re: Error when compiling postgresql 9.6.7 with Visual Studio 15.5.6
  In-Reply-To: <24867.1519061028@sss.pgh.pa.us>
  References: <CAL5LfdS4Z7XjOZhtXs8__7nZnRWsGVixSSYY4ci8dshjokF1+A@mail.gmail.com> <24867.1519061028@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox