Mingw32 bug ?
Hi,
I hope this is the appropriate list for my questions...
Apparently neither destruction of static objects nor the
atexit-mechanism appear to work for a program compiled with
i586-mingw32msvc-g++. The following program results in the expected
output of
Mon Jan 10: ~/c++/test> ./test
main
f
Destructor
when compiled with the native g++, but fails to produce the expected
output when compiled with the i586-mingw32msvc-g++ crosscompiler and
executed with wine.
Mon Jan 10: ~/c++/test> wine testcross.exe
main
Wine exited with a successful status
I don't know on which package to file a bug report, if any, or if I
simply overlooked something.
Thx alot for your help,
christian
The program used is:
#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);
}
Installed packages:
mingw32-binutils/testing uptodate 2.15.91.20040904.1-1
mingw32/testing uptodate 3.4.2.20040916.1-1
mingw32-runtime/testing uptodate 3.5-1
libwine/testing uptodate 0.0.20040914-1
wine-utils/testing uptodate 0.0.20040914-1
wine/testing uptodate 0.0.20040914-1
Reply to: