RE: [Dev-C++] -fvtable-thunks and CRASH!
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2002-10-18 23:30:04
|
>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
|