X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 010789DC9AD for ; Wed, 14 Dec 2005 08:17:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 52267-01 for ; Wed, 14 Dec 2005 08:17:24 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mars.amiindia.co.in (unknown [203.199.198.229]) by postgresql.org (Postfix) with ESMTP id CB3C19DC81E for ; Wed, 14 Dec 2005 08:17:13 -0400 (AST) Received: from amiindiahjwbgh ([10.0.0.205]) (authenticated bits=0) by mars.amiindia.co.in (8.12.11/8.12.11) with ESMTP id jBECOPT6019394; Wed, 14 Dec 2005 17:54:30 +0530 Message-ID: <033101c600a9$5a316f20$cd00000a@amiindiahjwbgh> From: "sandhya" To: "Magnus Hagander" Cc: "postgre" References: <6BCB9D8A16AC4241919521715F4D8BCE6C7D63@algol.sollentuna.se> Subject: Re: reg: Errors on Windows application(urgent) Date: Wed, 14 Dec 2005 17:54:38 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[AWL=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200512/119 X-Sequence-Number: 19839 hi Magnus..... Thank you verymuch.Problem is solved It is because of "Debug Mulithread ed using DLL" only..... -Sandhya ----- Original Message ----- From: "Magnus Hagander" To: "sandhya" ; "postgre" 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 >