Re: Win32 libpq : Static Link ?
От | Brett Schwarz |
---|---|
Тема | Re: Win32 libpq : Static Link ? |
Дата | |
Msg-id | 20041004062235.74651.qmail@web40611.mail.yahoo.com обсуждение исходный текст |
Ответ на | Re: Win32 libpq : Static Link ? (Oliver D. <oliver@inadd.com>) |
Ответы |
Re: Win32 libpq : Static Link ?
|
Список | pgsql-interfaces |
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. 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'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 :) 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 >
В списке pgsql-interfaces по дате отправления: