Author Topic: Can't use console while using SDL  (Read 4103 times)

Offline t512

  • Single posting newcomer
  • *
  • Posts: 6
Can't use console while using SDL
« on: July 12, 2008, 11:30:55 am »
Hello. Whenever I create a new SDL project the console won't display text. No matter whether I use cout or printf.

Offline t512

  • Single posting newcomer
  • *
  • Posts: 6
Re: Can't use console while using SDL
« Reply #1 on: July 15, 2008, 08:42:22 pm »
or does any one has the same problem?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Can't use console while using SDL
« Reply #2 on: July 19, 2008, 04:37:03 am »
FYI:

This is really an compiler specific type question so no one can really help you without the compiler.
Also, include compiler version number.

Also, I suggest Code::Blocks version or SVN number would help to duplicate the problem.

Edit: I just tried it with SVN 5134 and MinGW GCC 3.4.5 and don't see printf outputs.
I am assume they should be there, I have not used SDL in many months.
Were they there in the past?

Edit: I just realized I never used cout or printf inside of an Code::Blocks run either.

Edit: Please look for files called stderr.txt and stdout.txt when running the debug program.
It appears to be going there for me. Same folder as exe file in my case "TestSDL3\bin\Debug" where TestSDL3 was project name.

Tim S
« Last Edit: July 19, 2008, 04:50:58 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org