The simple code that's reproducing issue for me is below.
#include <cstdio>
#include <iostream>
int main() {
// Using printf instead of cout
printf("test printf!\n");
std::cout << "test cout!\n";
printf("test printf2!\n");
getchar();
return 0;
}
It's printing test printf! and closing.
Program is compiled and started with g++ main.cpp && .\a.exe (g++ showed no issues in the process).
How do I debug something like that?
Let's check something, try inserting