 To use functions in "xxxx".dll, the program must be linked to "xxxx".lib (or lib"xxxx".dll.a in MinGW).Some headers are not associated with a .dll but with a static library (e.g.scrnsave.h needs scrnsave.lib).