Hi!
I making a GUI program using QtCreator3.4.0 and i would like to use the console to see some things(i would like to test some lists sizes and other simple things like check the value of a variable in some part of the code, i think is more fast then debug). I'm using Windows 8.1 and MinGw4.9.1.
I read here i have to add "CONFIG += console" in my .pro file and i did it, i added too "include <iostream> using namespace std;" in my .cpp file but when i try to use "cout << "test";" i get the following error message.
How can i do that?crt0_c.c:-1: error: undefined reference to `WinMain@16'
collect2.exe:-1: error: error: ld returned 1 exit status
Bookmarks