I'm new to mingw-w64 and I'm running into the following problem:
I recently installed MSYS on my Windows 10 computer according to the instructions provided in
How to install MinGW-w64 and MSYS2?
and I am currently trying to build some Win32 C programs. I first tried some simple programs and they seem to work; however, I ran into problems with the C abort function.
If I build the following program on Linux
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
printf("bla bla bla\n");
abort();
}
and later run it, I simply get the output
bla bla bla
Aborted
However, on Windows the output is
bla bla bla
This application has requested the Runtime to terminate it in an unusual
way. Please contact the application's support team for more information.
A message window also appears with the message
a.exe has stopped working -- A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
Is this the way it is supposed to be? Anyway, I much prefer the Linux version.