The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
Simple Directmedia Layer Forums
SDL_Log does not prints to MSYS2 Terminal
Joined: 15 Sep 2016
Posted: Wed Feb 08, 2017 10:12 am
Compiling this program
int main (int argc, char* argv)
using the following command in the Mingw32 shell of MSYS2
clang test_log.c -lmingw32 -lSDL2main -SDL2
and running it print the text "Hello" when run from cmd.exe but not when run from the terminal emulator shipped with MSYS2.
Is there any way to redirect the OutputDebugString (which SDL seems to be using) to stderr? If not, is there any other way of getting this to work?