How does .h, .lib & .dll works together

Viewed 18541

To use FreeGlut librarie function, I had to do the following,

  • Added freeglut.h as a Header File
  • Added freeGlut.lib as a Resources File
  • Copied freeGlut.dll to my windows/SysWOW64 folder

But, how this whole system(.h, .lib & .dll) is interrelated with each other?

I know, the most basic thing is add a header file with class declaration and write the body on its respective source file. Finally include the header file to you main app.

3 Answers
Related