Confused about libraries

Hi,

I'm confused as to how libraries are used in C++. I understand that you need
#include <iostream> to have access to some functions like cout and cin. What about opengl? Is that some sort of library as well like iostream? Or what about stuff like #include <windows.h>? Is that a library as well?

What about libraries that I find on the internet? How do I use those?
I found this website http://pngwriter.sourceforge.net/ for simple 2D graphics but I cant figure out for the life of me how to use it.

Thanks for any help!
All the headers are used as interface to a libraries
Usually libraries have also a binary file ( .lib on windows ) which you have to link in your program.
OpenGL means "Open Graphic Library"

How do I use those?
After you installed your library, if you are working on an IDE you have to make it recognise the include directory and the lib directory. Then on your file #include <LibraryHeader> and change the linker settings adding that library you are using
Topic archived. No new replies allowed.