Author Topic: some general C questions  (Read 3041 times)

0 Members and 1 Guest are viewing this topic.

_player1537

  • Guest
some general C questions
« on: May 24, 2010, 06:47:43 pm »
ok, I've been wanting to learn C/C++ for a long time now, but I can't figure out how to get different headers and such.  Like how to get graphics.h or something similar.  I understand most of the concepts of working in C/C++ but I can't get graphics working.  Can anyone tell me how to do this from gcc/g++?  Thanks, expect other C graphics questions later (like about how to use certain functions and such)

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: some general C questions
« Reply #1 on: May 24, 2010, 06:53:00 pm »
Try using SDL for your graphics. Its an excellent, lightweight, and portable library.

_player1537

  • Guest
Re: some general C questions
« Reply #2 on: May 24, 2010, 06:54:49 pm »
how would I include this file, and I assume I need to get the development libraries, correct?

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6266
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: some general C questions
« Reply #3 on: July 05, 2010, 03:17:46 am »
You would get the relavent libraries, and depending on wjere you put them.
#include <name of library> will include a library from the includes fokders
#include "file.h" will include a file from your project folder
/e