Link error when use functions of PGtypes

From: Fanbin Meng <fanbin(dot)meng(at)kiltechcontrols(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Link error when use functions of PGtypes
Date: 2011-05-13 16:33:22
Message-ID: 86c29173ca516ce11d48b7ba5c56c2cb@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Browse pgsql-general by date

  From Date Subject
Next Message Derrick Rice 2011-05-13 16:56:25 Migrating to a WAL-shipped replication cluster
Previous Message Nick Raj 2011-05-13 16:09:58 Re: Debug Contrib/cube code