This topic is now archived and is closed to further replies.


How do I include library files? (not header files)

Recommended Posts

With MSVC, you can use

#pragma comment(lib, "library name")
which will tell the compiler to attempt to link the library. N&V's method is the preferred way, but placing this code inside the header for a library you're writing can be convenient. GLUT uses this technique.

Share this post

Link to post
Share on other sites