|
Re: How do I setup a SDK in C++?
For future reference:
.h files contain function / class definitions for your code to use. So, you need to include the .h file for the compiler to know what you mean when you call a library function
.dll (dynamic) and .lib (static) library files contain the actual code for the library. The linker needs these to make your program actually run library functions when you make those calls. Basically, the .dll/.lib is the actual library and the .h tells you what's in the library.
.dll or dynamic libraries are added in whenever you run your program (so you'll need those in the same folder as your program or on the search path for it to run correctly), while .lib or static libraries are added to your program binary during compilation (so no external dependencies).
For your project, you'll only need either the .dll or .lib, depending on which type of library linking you want.
Hope this clears things up
Last edited by euhlmann : 18-08-2016 at 00:34.
|