bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gettext patches for cygwin #4: accessing fields of exported structs/


From: Bruno Haible
Subject: Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays
Date: Wed, 23 Nov 2005 13:49:06 +0100
User-agent: KMail/1.5

Charles Wilson wrote:
> I'm not sure HOW g++ is able to finesse this issue, but it does so at 
> the cost of ABI compatibility.  The old C-only gettext DLL had a C ABI; 
> thus a DLL compiled by mingw was usable by intel, borland, or msvc 
> compilers.  By introducing C++ compilation, you've wandered into the 
> hell that is C++ ABI variation.

No, I avoid these problems:
  - For gettext's private DLLs (gettextlib and gettextsrc), these DLLs
    carry version numbers that are incremented in each release.
  - For gettext's public DLL (gettextpo), the C++ namemangling problem is
    avoided by using    extern "C" {}  in the header file, and the
    struct layout ABI problem is avoided by not declaring structs in
    that header file.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]