pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feedLink error when use Pgtypes function in windows
3+ messages / 3 participants
[nested] [flat]
* Link error when use Pgtypes function in windows
@ 2011-05-13 15:54 Fanbin Meng <fanbin.meng@kiltechcontrols.com>
0 siblings, 1 reply; 3+ messages in thread
From: Fanbin Meng @ 2011-05-13 15:54 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Link error when use Pgtypes function in windows
@ 2011-05-13 16:22 Maciek Sakrejda <msakrejda@truviso.com>
parent: Fanbin Meng <fanbin.meng@kiltechcontrols.com>
0 siblings, 1 reply; 3+ messages in thread
From: Maciek Sakrejda @ 2011-05-13 16:22 UTC (permalink / raw)
To: Fanbin Meng <fanbin.meng@kiltechcontrols.com>; +Cc: pgsql-performance
> Does someone can help me?
You may want to try pgsql-general instead of this list.
---
Maciek Sakrejda | System Architect | Truviso
1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Link error when use Pgtypes function in windows
@ 2011-05-19 20:10 Robert Haas <robertmhaas@gmail.com>
parent: Maciek Sakrejda <msakrejda@truviso.com>
0 siblings, 0 replies; 3+ messages in thread
From: Robert Haas @ 2011-05-19 20:10 UTC (permalink / raw)
To: Maciek Sakrejda <msakrejda@truviso.com>; +Cc: Fanbin Meng <fanbin.meng@kiltechcontrols.com>; pgsql-performance
On Fri, May 13, 2011 at 12:22 PM, Maciek Sakrejda <msakrejda@truviso.com> wrote:
>> Does someone can help me?
>
> You may want to try pgsql-general instead of this list.
Yeah, this isn't a performance question.
But I wonder if the problem might be that the OP needs to link with
the ecpg library, not just libpq.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2011-05-19 20:10 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-05-13 15:54 Link error when use Pgtypes function in windows Fanbin Meng <fanbin.meng@kiltechcontrols.com>
2011-05-13 16:22 ` Maciek Sakrejda <msakrejda@truviso.com>
2011-05-19 20:10 ` Robert Haas <robertmhaas@gmail.com>
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