Re: [Dev-C++] -fvtable-thunks and CRASH!
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Carlos d. M. <cg...@wo...> - 2002-10-19 09:47:48
|
Because GCC3.2 compiles with thunks as default.
Ioannis Vranos escribi=F3:
> >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
>
> A proper one version:
>
> #include <iostream>
> #include <sstream>
>
> int main()
> {
> using std::stringstream;
> using std::endl;
>
> stringstream s;
> s << endl;
>
> return 0;
> }
>
> With GCC 3.2 it doesn't crash but it produces:
>
> C:\c>g++ -fvtable-thunks temp.cpp -o temp
> cc1plus.exe: warning: -fvtable-thunks is no longer supported
>
> C:\c>temp
>
> C:\c>
>
> Ioannis
>
> * Ioannis Vranos
> * Programming pages: http://www.noicys.freeurl.com
> * Alternative URL: http://run.to/noicys
>
> -------------------------------------------------------
> This sf.net email is sponsored by:
> Access Your PC Securely with GoToMyPC. Try Free Now
> https://www.gotomypc.com/s/OSND/DD
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|