Link error when use Pgtypes function in windows

From: Fanbin Meng <fanbin(dot)meng(at)kiltechcontrols(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Link error when use Pgtypes function in windows
Date: 2011-05-13 15:54:38
Message-ID: BANLkTikNPXLBy9a-bCJxgQefUDScxzzF2w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Maciek Sakrejda 2011-05-13 16:22:25 Re: Link error when use Pgtypes function in windows
Previous Message Fredrik Widlert 2011-05-13 15:09:42 Re: How to avoid seq scans for joins between union-all views (test case included)