pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeroen T. Vermeulen <jtv@xs4all.nl>
To: Andreas Gidlund <vaxis@hotmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Compilations failing
Date: Mon, 2 Oct 2006 13:51:38 +0700 (ICT)
Message-ID: <6643.203.121.164.162.1159771898.squirrel@webmail.xs4all.nl> (raw)
In-Reply-To: <BAY103-F396CACAB6479B0A275F31FBA1E0@phx.gbl>
References: <BAY103-F396CACAB6479B0A275F31FBA1E0@phx.gbl>

On Mon, October 2, 2006 02:36, Andreas Gidlund wrote:

> it will stop when
> compiling \src\backend\utils\mb\wchar.c, because there are two functions
> which cannot be compiled, pg_euc_mblen and pg_euc_dsplen. The reason is
> that
> they are declared both static and inlined, which is a syntax nmake
> appearantly does not support.

That's not nmake; that's the compiler.  The combination of "inline static"
sounds perfectly valid to me though--don't see why that would be a
problem.  Perhaps it's a simple matter of "static inline" vs. "inline
static?"


> Though, here comes a problem. When I tried to execute a query and hence
> recieve the result into a PGresult, the compiler complains about that the
> variable uses an undefined struct, pg_result.

That's odd...  Are you compiling postgres as "managed code," by any
chance?  That would explain runtime errors of this kind (which in C and
C++ should give you compile-time errors or just work), and it's also known
to cause lots of confusion and link errors with libpqxx.

The problem with "managed code" is that it's not really compatible with
C++, but this fact is apparently not made very obvious.  From what I hear,
the code can look similar but it's not possible to link "managed C++" to
C++ DLLs.  The situation with C may be similar.


Jeroen





view thread (5+ messages)

Message-ID: <6643.203.121.164.162.1159771898.squirrel@webmail.xs4all.nl>
Permalink:  ../6643.203.121.164.162.1159771898.squirrel@webmail.xs4all.nl/
Also on:    postgresql.org/message-id/6643.203.121.164.162.1159771898.squirrel@webmail.xs4all.nl

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: jtv@xs4all.nl, vaxis@hotmail.com
  Subject: Re: Compilations failing
  In-Reply-To: <6643.203.121.164.162.1159771898.squirrel@webmail.xs4all.nl>

* 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