Relative Content

Tag Archive for c++windows-10msys2

weird behaviour of C++ programs built in MSYS2 – no output etc

I recompiled one of my codes using a freshly installed MSYS2 with the (default) UCRT64 environment, and it behaves weirdly: debug version works, but release version dies on opening an ifstream – regardless if the file exists or not – or maybe it just stops writing output; in any case, a cout placed on the following line does not appear (and there is no exception either).