What I mean is:
When that simple program is compiled, under gcc 2.95 with mingw32, windows =
terminates the application somwhere inside the line:
s << endl;
(standard error message, illegal operation or what it is called). In other =
words "segmentation fault".
This is when it's compiled with:
-fvtable-thunks
that flag has to be there for directx to work under gcc. (the COM part i gu=
ess).
Taking away that compiler option makes it run like a charm. It took me quit=
e som time to figure out th eproblem, isolated from a large one :)
The LAST think i removed was the -fvtable-thunks, who could know?
Please someone, tell me how to fix it.=20
Thanks for the answer, I have no clue how to solve it, hope someone does!
Daniel =C5kerud
-----Original Message-----
From: "Daniel Glenfield" <sp...@ho...>
To: zi...@ho..., dev...@li...
Date: Fri, 18 Oct 2002 12:18:26 +0100
Subject: Re: [Dev-C++] -fvtable-thunks and CRASH!
what do you mean by crash? does the machine freeze, or do you get an illega=
l
operation error or what?
>From: Daniel =C5kerud <zi...@ho...>
>To: <dev...@li...>
>Subject: [Dev-C++] -fvtable-thunks and CRASH!
>Date: Wed, 16 Oct 2002 07:45:03 +0200
>
>
>At last I found the problem!
>compiling with -fvtable-thunks is causing this simple program to crash:
>
>
>#include <iostream>
>#include <sstream>
>
>using std::stringstream;
>
>int main()
>{
> stringstream s;
> s << endl;
>
> return 0;
>}
>
>
>Why? How can I solve it?
>If you ask why I use -fvtable-thunks it's because I code in directX!
>
>thanks!
>
>Daniel =C5kerud
>
>
_________________________________________________________________
Broadband?=A0Dial-up? Get reliable MSN Internet Access.
http://resourcecenter.msn.com/access/plans/default.asp
|