I originally posted this question on the discussion forum
(http://sourceforge.net/projects/mingw-w64/forums/forum/723797/topic/5097793),
but I wasn't sure if that was active.
Basically, I am getting a crash with cout << float, when running a
program compiled for a 64-bit windows target. This could be ignorance
on my part, since I don't have a lot of experience using the mingw64
compilers, so maybe it will be obvious that I'm doing something wrong?
The following test program demonstrates:
$ /c/mingw-w64-bin_i686-mingw_20111220/bin/x86_64-w64-mingw32-g++.exe
--version
x86_64-w64-mingw32-g++.exe (GCC) 4.7.0 20111220 (experimental)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ cat prog.cpp
#include <iostream>
using namespace std;
int main(void) {
cout << "hello" << endl;
float x = 10.0;
cout << x << endl;
}
$ make
/c/mingw-w64-bin_i686-mingw_20111220/bin/x86_64-w64-mingw32-g++.exe
-c -o pro
g.o prog.cpp
/c/mingw-w64-bin_i686-mingw_20111220/bin/x86_64-w64-mingw32-g++.exe -g
-static-l
ibgcc -static-libstdc++ -o prog prog.o
$ ./prog.exe
hello
[crashes]
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public