SDL Forum Index
SDL
Simple DirectMedia Layer Forums
Reply to topic
SDL_Log does not prints to MSYS2 Terminal
namandixit


Joined: 15 Sep 2016
Posts: 1
Reply with quote
Compiling this program

Code:

#include <SDL2/SDL.h>
int main (int argc, char* argv[])
{
    SDL_Log("Hello/n");
    return 0;
}


using the following command in the Mingw32 shell of MSYS2

Code:

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?
View user's profileSend private message
SDL_Log does not prints to MSYS2 Terminal
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic