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: Charles Wilson
Subject: Re: gettext patches for cygwin #4: accessing fields of exported structs/arrays
Date: Thu, 24 Nov 2005 10:53:57 -0500
User-agent: Thunderbird 1.5 (Windows/20051025)

Bruno Haible wrote:
Charles Wilson wrote:
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.

well, yeah -- those are private. Nobody else is "allowed" to use them; you can do whatever you want.

  - For gettext's public DLL (gettextpo), the C++ namemangling problem is
    avoided by using    extern "C" {}  in the header file,

Ack.

and the
    struct layout ABI problem is avoided by not declaring structs in
    that header file.

Ack.

Thanks for the explanation. I still don't *like* the g++ workaround, but I'm no longer worried it breaking the ABI.

--
Chuck





reply via email to

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