Re: Win32 libpq : Static Link ?
От | Oliver D. |
---|---|
Тема | Re: Win32 libpq : Static Link ? |
Дата | |
Msg-id | CA9353E4-15DB-11D9-A289-000A27AFF5D2@inadd.com обсуждение исходный текст |
Ответ на | Re: Win32 libpq : Static Link ? (Brett Schwarz <brett_schwarz@yahoo.com>) |
Список | pgsql-interfaces |
Le 4 oct. 04, à 08:22, Brett Schwarz a écrit : > I was able to link statically, but I have not tried > VC7. I heard that VC7 enforces that you distribute the > RT DLL with the app. Are you having troubles running > the app on the machine you compiled on, or another > machine? If the latter, then I believe you need to > copy over msvcr70.dll as well. I have troubles running the app on the machine I compiled on an, of course other machines. > > For VC6, these are the libs I had to link in to get it > working (in addition to the standard ones): > > libpq.lib wsock32.lib MSVCRT.lib I have the same dependencies... > > I'm not even close to being a Win guru, so I am not > sure if this makes sense...I basically got it working > by trial and error :) That what I did, but I'm getting tired trying everything that comes in my mind: I'm a bit reassure that you've been able to link statically: it means that the libpq.lib is OK and the issue comes probably from my VC++ 7 project. Basically, I've linked against libpq.lib normally. Bit my application still asks for "libpq.dll" (exactly). And I suspect the compiled .exe not include libpq since it is strangely light comparing my MacOS exe. Thanks Stéphane > > HTH, > > --brett > > --- "Oliver D." <oliver@inadd.com> wrote: > >> I'm completely stuck with this issue. I just want to >> know if some Win32 >> developer has been able to >> links statically against libpq (using libpq.lib). >> Even if I apparently >> could compile the static lib, the program >> that try to link against still asks for a .dll. >> >> Any help would be appreciated. >> >> Thank you very much. >> >> Oliver. >> >> >> Le 1 oct. 04, à 23:16, Oliver D. a écrit : >> >>> We are experiencing troubles trying to link >> -statically- against >>> libpq.lib on Windows (VC++ 7). >>> >>> Our app works great when we link against libpq.dll >> but we can't get >>> the same result >>> with libpq.lib. The app seems to continuously ask >> for a dll. >>> >>> We have compiled 7.4.X libpq on Win32 but still >> can't get a static >>> link. >>> >>> Have some windows experienced developers already >> been able to link >>> against >>> libpq.lib with VC++ ? >>> >>> Thank you for your help. >>> >>> Oliver >> >> >> ---------------------------(end of >> broadcast)--------------------------- >> TIP 9: the planner will ignore your desire to choose >> an index scan if your >> joining column's datatypes do not match >> > > > ---------------------------(end of > broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html >
В списке pgsql-interfaces по дате отправления: