[Top][All Lists]
[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
- gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/20
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Bruno Haible, 2005/11/21
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/22
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Bruno Haible, 2005/11/22
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/23
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Ralf Wildenhues, 2005/11/24
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Bruno Haible, 2005/11/24
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/24
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/27
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays,
Bruno Haible <=
- Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays, Charles Wilson, 2005/11/24