Link error when use Pgtypes function in windows - Mailing list pgsql-performance

From Fanbin Meng
Subject Link error when use Pgtypes function in windows
Date
Msg-id BANLkTikNPXLBy9a-bCJxgQefUDScxzzF2w@mail.gmail.com
Whole thread Raw
Responses Re: Link error when use Pgtypes function in windows  (Maciek Sakrejda <msakrejda@truviso.com>)
List 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

pgsql-performance by date:

Previous
From: Fredrik Widlert
Date:
Subject: Re: How to avoid seq scans for joins between union-all views (test case included)
Next
From: Maciek Sakrejda
Date:
Subject: Re: Link error when use Pgtypes function in windows