logo       

Re: Win32 libpq : Static Link ?: msg#00011

Subject: Re: Win32 libpq : Static Link ?

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@xxxxxxxxx> 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



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
     subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
     message can get through to the mailing list cleanly



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe