Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 49739B5DBB6 for ; Fri, 13 May 2011 12:54:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 42080-04 for ; Fri, 13 May 2011 15:54:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iy0-f174.google.com (mail-iy0-f174.google.com [209.85.210.174]) by mail.postgresql.org (Postfix) with ESMTP id 11ADCB5D8C5 for ; Fri, 13 May 2011 12:54:39 -0300 (ADT) Received: by iyb14 with SMTP id 14so2190256iyb.19 for ; Fri, 13 May 2011 08:54:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.153.198 with SMTP id n6mr1954230icw.235.1305302078690; Fri, 13 May 2011 08:54:38 -0700 (PDT) Received: by 10.42.222.8 with HTTP; Fri, 13 May 2011 08:54:38 -0700 (PDT) Date: Fri, 13 May 2011 11:54:38 -0400 Message-ID: Subject: Link error when use Pgtypes function in windows From: Fanbin Meng To: pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary=90e6ba1efb1cb9971f04a32a52ea X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.639 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, HTML_OBFUSCATE_05_10=0.26 X-Spam-Level: X-Archive-Number: 201105/206 X-Sequence-Number: 43715 --90e6ba1efb1cb9971f04a32a52ea Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi: I installed PostgreSQL9.0 from EnterpriseDB with=93one click installer=94 = 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 th= e 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 i= n function. And all the function PGTYPEStimestamp and PGTYPEsinterval can cause the same error. Does someone can help me? Thanks. Fanbin --90e6ba1efb1cb9971f04a32a52ea Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable

Hi:

I installed PostgreSQL9.0 from Enterpr= iseDB with=93one click insta= ller=94 =A0in windows 7 & 32bit.<= /font>

and use microsoft visual studio 2010 c++.

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

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

But it always have errors like this when link:

error LNK2019: unresolved external symbol _PGTYPESinterval_n= ew referenced in function.

And all the function PGTYPEStimestamp<= span style=3D"mso-spacerun: yes">=A0 and PGTYPEsinterval can cause t= he same error.

Does someone can help me?

Thanks.

Fanbin

--90e6ba1efb1cb9971f04a32a52ea--