This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Mingw-users] Possible strange behaviour of gcc
- To: martin dot kahlert at infineon dot com, gcc at gcc dot gnu dot org
- Subject: Re: [Mingw-users] Possible strange behaviour of gcc
- From: Earnie Boyd <earnie_boyd at yahoo dot com>
- Date: Tue, 21 Nov 2000 11:20:57 -0800 (PST)
- Cc: mingw-users at lists dot sourceforge dot net
--- Martin Kahlert <martin.kahlert@infineon.com> wrote:
> Hi!
> I have a strange behaviour of gcc on Windows (mingw-version):
>
> I have to link a binary only lib to my application and it
> crashes when i use a string constant which is
> (including the trailing '\0') longer than 8 chars.
>
> I thought, it was a classical memory allocation problem,
> but the application reserves 10 Bytes for the string.
>
> So i tried -fwritable-strings, but no success, either.
>
> Does gcc behave somehow differently, when a data item exceeds 8 Bytes?
> I assume, my problem has to do with an incompatibility of the two compilers
> (MSVC and gcc).
>
Add -fnative-struct to the build of your gcc objects and see if that helps.
Cheers,
=====
Earnie Boyd
mailto:earnie_boyd@yahoo.com
--- <http://earniesystems.safeshopper.com> ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
--- Minimalist GNU for Windows <http://www.mingw.org/> ---
__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/