![]() |
[SDL2]-"printf" Not Printing To Command Prompt On | ![]() |
![]() |
![]() |
theGiallo
![]() |
![]() |
If you are using VisualStudio you have to set the project to Win32 console. Maybe try to use SDL_LogInfo or SDL_Log
|
||||||||||
|
![]() |
![]() |
JeZ-l-Lee
![]() |
![]() |
That worked! We are using Code::Blocks and set project to "Console" and now printf's work in Command Prompt on Win XP. Thanks! |
||||||||||||
|
![]() |
[SDL2]-"printf" Not Printing To Command Prompt On | ![]() |
Andreas Schiffler
Guest
![]() |
![]() |
FYI - the log functions will automatically attach to the console in Windows when a program was opened from the commandline.
/* Enable standard application logging */ SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO); ... /* Log something */ SDL_Log("Something went wrong: %s\n", SDL_GetError()); On 12/8/2014 10:39 AM, JeZ-l-Lee wrote:
|
||||||||||||||
|
![]() |
[SDL2]-"printf" Not Printing To Command Prompt On | ![]() |
Jonas Kulla
Guest
![]() |
![]() |
Make sure you're compiling a console application (instead of a GUI one) by not passing
-mwindows to mingw, otherwise the app will detach itself from any console at startup. 2014-12-08 18:31 GMT+01:00 JeZ-l-Lee:
|
||||||||||||
|
![]() |
![]() |
JeZ-l-Lee
![]() |
![]() |
Thank you, we have it working now...
|
||||||||||
|