pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fanbin Meng <fanbin.meng@kiltechcontrols.com>
To: pgsql-performance@postgresql.org
Subject: Link error when use Pgtypes function in windows
Date: Fri, 13 May 2011 11:54:38 -0400
Message-ID: <BANLkTikNPXLBy9a-bCJxgQefUDScxzzF2w@mail.gmail.com> (raw)

Hi:

I installed PostgreSQL9.0 from EnterpriseDB with“one click installer”  in
windows 7 & 32bit.

and use microsoft visual studio 2010 c++.

I added the libpq.lib to the link property of the project, also included the
lib folder and path.

Successfully compiled .c and .cpp file after  transfer .pgc file to .c file
using ECPG.

But it always have errors like this when link:

error LNK2019: unresolved external symbol _PGTYPESinterval_new referenced in
function.

And all the function PGTYPEStimestamp  and PGTYPEsinterval can cause the
same error.

Does someone can help me?

Thanks.

Fanbin

view thread (3+ messages)  latest in thread

Message-ID: <BANLkTikNPXLBy9a-bCJxgQefUDScxzzF2w@mail.gmail.com>
Permalink:  ../BANLkTikNPXLBy9a-bCJxgQefUDScxzzF2w@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTikNPXLBy9a-bCJxgQefUDScxzzF2w@mail.gmail.com

 · 

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-performance@postgresql.org
  Cc: fanbin.meng@kiltechcontrols.com
  Subject: Re: Link error when use Pgtypes function in windows
  In-Reply-To: <BANLkTikNPXLBy9a-bCJxgQefUDScxzzF2w@mail.gmail.com>
  References: <BANLkTikNPXLBy9a-bCJxgQefUDScxzzF2w@mail.gmail.com>

* 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