From: | "sandhya" <sandhyar(at)amiindia(dot)co(dot)in> |
---|---|
To: | "Magnus Hagander" <mha(at)sollentuna(dot)net>, "postgre" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: reg: Errors on Windows application(urgent) |
Date: | 2005-12-15 05:46:39 |
Message-ID: | 00ea01c6013a$eba4b9d0$cd00000a@amiindiahjwbgh |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
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" <mha(at)sollentuna(dot)net>
To: "sandhya" <sandhyar(at)amiindia(dot)co(dot)in>; "postgre"
<pgsql-admin(at)postgresql(dot)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(at)16 webs error LNK2019:
> > unresolved external symbol _PQerrorMessage referenced in
> > function _WinMain(at)16
> >
> > webs error LNK2019: unresolved external symbol _PQstatus
> > referenced in function _WinMain(at)16
> >
> > webs error LNK2019: unresolved external symbol _PQsetdbLogin
> > referenced in function _WinMain(at)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
>
From | Date | Subject | |
---|---|---|---|
Next Message | sandhya | 2005-12-15 08:11:24 | reg:Import&Export functions problem |
Previous Message | sandhya | 2005-12-15 05:39:43 | reg:Import&Export functions |