http://bugs.winehq.org/show_bug.cgi?id=3631
Summary: Static destructors or atexit not called if app is compiled with mingw32 Product: Wine Version: 20050930 Platform: PC URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=290795 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-binary AssignedTo: wine-bugs@winehq.org ReportedBy: ovek@arcticnet.no
Muschick Christian muschick_christian@aon.at reports that when this app is compiled with mingw32, it runs properly on Windows, but not on Wine. (When it is compiled with a Windows compiler, it runs properly on both.)
#include <iostream>
class Foo { public: ~Foo() { std::cout << "Destructor\n"; } };
Foo foo;
void f() { std::cout << "f\n"; }
int main(int c, char ** p) { std::cout << "main\n"; atexit(f); return 0; }