Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: _player1537 on May 24, 2010, 06:47:43 pm

Title: some general C questions
Post by: _player1537 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)
Title: Re: some general C questions
Post by: bwang on May 24, 2010, 06:53:00 pm
Try using SDL for your graphics. Its an excellent, lightweight, and portable library.
Title: Re: some general C questions
Post by: _player1537 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?
Title: Re: some general C questions
Post by: Eeems 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