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 98B749DC9AE for ; Thu, 15 Dec 2005 01:39:15 -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 82711-09 for ; Thu, 15 Dec 2005 01:39:13 -0400 (AST) X-Greylist: delayed 00:07:06.330871 by SQLgrey- Received: from venus.amiindia.co.in (unknown [203.199.198.234]) by postgresql.org (Postfix) with ESMTP id DA3709DC8E1 for ; Thu, 15 Dec 2005 01:39:11 -0400 (AST) Received: from venus.amiindia.co.in (localhost.localdomain [127.0.0.1]) by venus.amiindia.co.in (8.12.11/8.12.11) with ESMTP id jBF5YuQQ001640; Thu, 15 Dec 2005 11:04:56 +0530 Received: from amiindiahjwbgh (unknown [10.0.0.205])by venus.amiindia.co.in (Postfix) with ESMTP id A990833276E; Thu, 15 Dec 2005 11:04:56 +0530 (IST) Message-ID: <00ea01c6013a$eba4b9d0$cd00000a@amiindiahjwbgh> From: "sandhya" To: "Magnus Hagander" , "postgre" References: <6BCB9D8A16AC4241919521715F4D8BCE6C7D63@algol.sollentuna.se> Subject: Re: reg: Errors on Windows application(urgent) Date: Thu, 15 Dec 2005 11:16:39 +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-imss-version: 2.5 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:15 M:1 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.001 required=5 tests=[AWL=-0.000, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 0.001 X-Spam-Level: X-Archive-Number: 200512/139 X-Sequence-Number: 19859 hi Magnus.... It compiled and Linked properly after mentioning "Debug Multithread ed using DLL"But i faced problem while executing it.... Simply i gave in Configuration properties-> Linker->Input-> ignore library the library name "LIBCMTD.lib" Then it worked fine....... Any thing wrong in this? Just to inform the solution to your view..... Thanks, 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 >