From: sandhya <sandhyar@amiindia.co.in>
To: Magnus Hagander <mha@sollentuna.net>
Cc: postgre <pgsql-admin@postgresql.org>
Subject: Re: reg: Errors on Windows application(urgent)
Date: Wed, 14 Dec 2005 17:54:38 +0530
Message-ID: <033101c600a9$5a316f20$cd00000a@amiindiahjwbgh> (raw)
References: <6BCB9D8A16AC4241919521715F4D8BCE6C7D63@algol.sollentuna.se>
hi Magnus.....
Thank you verymuch.Problem is solved
It is because of "Debug Mulithread ed using DLL" only.....
-Sandhya
----- Original Message -----
From: "Magnus Hagander" <mha@sollentuna.net>
To: "sandhya" <sandhyar@amiindia.co.in>; "postgre"
<pgsql-admin@postgresql.org>
Sent: Wednesday, December 14, 2005 2:41 PM
Subject: Re: [ADMIN] reg: Errors on Windows application(urgent)
> > Without including libpq.lib in (project->
> > properties->Linker->Input->Additional dependencies ) I just
> > started learning to work on MFC/.Net Please suggest me how to proceed
> >
> > webs error LNK2019: unresolved external symbol _PQfinish
> > referenced in function _WinMain@16 webs error LNK2019:
> > unresolved external symbol _PQerrorMessage referenced in
> > function _WinMain@16
> >
> > webs error LNK2019: unresolved external symbol _PQstatus
> > referenced in function _WinMain@16
> >
> > webs error LNK2019: unresolved external symbol _PQsetdbLogin
> > referenced in function _WinMain@16
>
>
> This is consistent with not including libpq, so nothing weird there.
> Note: You can just add the lib file as a dependency in your project
> explorer if I'm not mistaken - that easier than going through project
> properties.
>
>
> > After including libpq.lib in (project->
> > properties->Linker->Input->Additional dependencies ) These
> > are the errors webs error LNK2005: _free already defined in
> > LIBCMTD.lib(dbgheap.obj) webs error LNK2005: _malloc already
> > defined in LIBCMTD.lib(dbgheap.obj) webs
>
> Your project is set to use "Debug Multithreaded". That conflicts with
> libpq. You will need to use "Multithreaded using DLL" (it may work with
> "Debug Mulithread ed using DLL" - I'm not sure about that).
>
> If that's not pssible, you will need to recompile libpq with the same
> settings your program uses.
>
> (For further information, see
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore9
> 8/HTML/lnk4098.asp)
>
>
> //Magnus
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: sandhyar@amiindia.co.in, mha@sollentuna.net
Subject: Re: reg: Errors on Windows application(urgent)
In-Reply-To: <033101c600a9$5a316f20$cd00000a@amiindiahjwbgh>
References: <6BCB9D8A16AC4241919521715F4D8BCE6C7D63@algol.sollentuna.se> <033101c600a9$5a316f20$cd00000a@amiindiahjwbgh>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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