Jump to content
  • Advertisement
Sign in to follow this  
Mizipzor

Include a header?

This topic is 4815 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im using Microsoft Visual C++ .NET. Ive downloaded the SDL_gfxPrimitives.h so I can draw primitives in my programs. But where should I place that header? I know the include command to get it into the program but in which folder should I place it, or where is the setting where I can set the compiler to look in different folders? Ive looked around but the program is fairly advanced, cant find it.

Share this post


Link to post
Share on other sites
Advertisement
First, you can't just download one header file from SDL and expect to use the functions it declares. You need to download and install the complete SDL package. Once you have done that, you can go here for a tutorial on setting up VC++ .NET with SDL.

Share this post


Link to post
Share on other sites
I have installed the sdl package and read a few tutorials. I just wanted to be able to draw primitives like lines and circles, I went off to start coding my own algoritms with the sdl drawpixel command to be able to make all primitives. But then I asked in the forum if something like this hadnt been done before and got a link to a page that got that header.

However that link you gave me sorted out where to add include folders, thanks. :)

Share this post


Link to post
Share on other sites
Quote:
Original post by Mizipzor
I have installed the sdl package and read a few tutorials. I just wanted to be able to draw primitives like lines and circles, I went off to start coding my own algoritms with the sdl drawpixel command to be able to make all primitives. But then I asked in the forum if something like this hadnt been done before and got a link to a page that got that header.


My mistake. I assumed you were quite a bit more noob-ful than you are. Sorry. ;)

Quote:
However that link you gave me sorted out where to add include folders, thanks. :)


You're very welcome.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!