This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problems with g++ 2.95.2 and w32api 0.1.5


On Fri, 28 Jan 2000, Kris Thielemans wrote:

> The following 'do nothing' programme crashes when including <windows.h>
> (using Norlander's w32api 0.1.5).
> 
> #include <string>
> #include <vector>
> 
> class A
> {
>   vector<int> v;
> 
>   A(vector<int>& vv) :
>     v(vv)
>   {}
> };
> 
> #include <windows.h>
> 
> main()
> {
>   string a = "aa";
> }
> 

This is a bug the surfaced after some attribute handling changes in gcc
2.95 (wasn't there in egcs-1.1.x), and I just haven't been able to crack
it. If you want to know what's going on, see:

   Linkname: (C++) parser bug in handling fn attributes
   URL: http://gcc.gnu.org/ml/gcc-bugs/1999-11/msg00084.html

Contains a much simplified testcase that demonstrates the same bug you
found. This one is damned frustrating.

I have no fix for it currently, sorry.

As a workaround, try moving the windows.h before string.

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]