QT Console application QTextStream
Hello everyone.
I try to create a simple console application with Visual C++ 2010 and QT 4.7.0.
I try to use the QTextStream class to write to the stdout stream.
Howevery, if the code
Code:
#include <QTCore>
int main(int argc, char** argv) {
return 0;
}
is executed, the application crashes on the 4th line with:
Code:
Unhandled exception at 0x77b08c19 in console.exe: 0xC0000005: Access violation writing location 0x00000014.
Does someone know this problem?
Thank you, Louis
Re: QT Console application QTextStream
Do you use Qt binary build with Visual Studio 2008 (downloaded from Qt website) or did you build yourself the Qt framework with Visual Studio 2010?
I have the libraries and it give a run-time error with VS 2010, but works with VS 2008.
I'm now building Qt with VS 2010 and i will reply after i test it.
Update: my build finished and it works, if you want to test i can send you qtcore4.dll built with VS 2010, or you can build Qt with VS 2010
Re: QT Console application QTextStream
Great, thanks. I think i built it myselfe.