pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeroen T. Vermeulen <jtv@xs4all.nl>
To: Christiane Brasil <christianebrasil@gmail.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Problems - Libpq++
Date: Tue, 23 May 2006 21:27:05 +0700 (ICT)
Message-ID: <11362.125.24.1.52.1148394425.squirrel@webmail.xs4all.nl> (raw)
In-Reply-To: <36ba2fe20605230446l720a58f2p789cf83521e2736c@mail.gmail.com>
References: <36ba2fe20605230446l720a58f2p789cf83521e2736c@mail.gmail.com>

On Tue, May 23, 2006 18:46, Christiane Brasil wrote:

> I´m trying to compile a program with Visual C++ Express Edition, using the
> library Libpq++. But I don´t understand the errors that appear when it´s
> compiled.

> 1>projBancoII.obj : error LNK2028: unresolved token (0A000015) "public:
> enum
> ExecStatusType __clrcall Libpqpp::PgConnection::Exec(char const *)"
> (?Exec@
> PgConnection@Libpqpp@@$$FQAM?AW4ExecStatusType@@PBD@Z) referenced in
> function "private: void __clrcall projBancoII::Form1::button1_Click(class
> System::Object ^,class System::EventArgs ^)" (?button1_Click@
> Form1@projBancoII@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z)

It looks like this compiler isn't speaking C++ in the first place--more
likely it's one of the Microsoft-specific "C++-like" languages that aren't
quite compatible.  From what I heard, that unary "^" you see in this error
is something specific to a language called C++/CLI.

This can get a bit confusing since some of the people involved have made
it seem like this derived language and standard C++ were the same thing. 
Apparently, however, Microsoft's compiler does impose some restrictions on
how you can link these derived languages with real C++ code.


Jeroen





view thread (3+ messages)  latest in thread

Message-ID: <11362.125.24.1.52.1148394425.squirrel@webmail.xs4all.nl>
Permalink:  ../11362.125.24.1.52.1148394425.squirrel@webmail.xs4all.nl/
Also on:    postgresql.org/message-id/11362.125.24.1.52.1148394425.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, christianebrasil@gmail.com
  Subject: Re: Problems - Libpq++
  In-Reply-To: <11362.125.24.1.52.1148394425.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