Skip site navigation (1) Skip section navigation (2)

Re: [pgsql-hackers-win32] snprintf causes regression

From: pgsql(at)mohawksoft(dot)com
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>,"Nicolai Tufar" <ntufar(at)gmail(dot)com>,"Magnus Hagander" <mha(at)sollentuna(dot)net>,"PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>,"PostgreSQL Win32 port list" <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: [pgsql-hackers-win32] snprintf causes regression
Date: 2005-03-02 16:00:53
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-hackers-win32pgsql-patches
> Yes, strangly the Window's linker is fine because libpqdll.def defines
> what symbols are exported.  I don't think Unix has that capability.

A non-static "public" function in a Windows DLL is not available for
dynamic linking unless explicitly declared as dll export. This behavior is
completely different than UNIX shared libraries.

Windows static libraries operate completely differently than Windows DLLs,
they work like their UNIX equivilents.

So, if you create an snprintf function in code that will be in both a
static and dynamic library, the static library may have conflicts where as
the dynamic one will not.

Don't you love Windows?

In response to

pgsql-hackers by date

Next:From: Dave CramerDate: 2005-03-02 16:04:21
Subject: Re: 8.0.X and the ARC patent
Previous:From: Mark WongDate: 2005-03-02 15:47:40
Subject: Re: 8.0.X and the ARC patent

pgsql-patches by date

Next:From: Peter EisentrautDate: 2005-03-02 16:17:13
Subject: Re: [pgsql-hackers-win32] [HACKERS] snprintf causes regression tests
Previous:From: Bruce MomjianDate: 2005-03-02 15:50:22
Subject: Re: [pgsql-hackers-win32] [HACKERS] snprintf causes regression tests

pgsql-hackers-win32 by date

Next:From: Bricklen AndersonDate: 2005-03-02 16:13:34
Subject: Re: Help with tuning this query
Previous:From: Bruce MomjianDate: 2005-03-02 15:41:00
Subject: Re: [pgsql-hackers-win32] snprintf causes regression tests

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group