Do you compile in debug or release?
To redirect the console output to a file.. You can do something like that:int main()
{
std::ofstream error_file; //File
std::streambuf *cout_buffer = std::cout.rdbuf() ; //Initial buffer of cout
error_file.open("log erreur.txt", std::ofstream::out); //Open file
std::cout.rdbuf( error_file.rdbuf() ); //Change the cout buffer
//Code here
// Stop using the file
std::cout.rdbuf( cout_buffer );
error_file.close();
return 0;
}