Thread: SDL and stdio.h

  1. #1
    Registered User
    Join Date
    Apr 2008

    SDL and stdio.h


    I have a pretty good understanding of c programming, with the normal libraries, but recently i have tried to start using SDL for some basic graphics. BUt when you use SDL it makes a new window that it 'blits' to. can i get my printf statements etc and SDL to work together or do you have to use completely different commands for printing to the screen shwen using SDL?


  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    You can't use printf to write to the SDL window. You can have a second "console" window using AllocConsole, or you have to use font drawing functions. Here's a link that describes ONE possible solution:

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. error: stdio.h: No such file or directory
    By MindLess in forum C Programming
    Replies: 9
    Last Post: 12-20-2007, 08:11 AM
  2. getting error "unable to open include stdio.h
    By coolgal in forum C Programming
    Replies: 18
    Last Post: 12-07-2007, 01:36 AM
  3. stdio.h
    By Vertex34 in forum C Programming
    Replies: 2
    Last Post: 07-12-2004, 10:18 AM
  4. error in -stdio.h __VALIST
    By JaWiB in forum C++ Programming
    Replies: 3
    Last Post: 09-20-2003, 12:22 PM
  5. Modifying stdio.h
    By Spectrum48k in forum C Programming
    Replies: 10
    Last Post: 05-29-2002, 08:30 AM