use PRAGMA

The following pragma causes the linker to search for the your library while linking. The linker searches first in the current working directory and then in the path specified in the LIB environment variable.

#pragma comment( lib, "your library name" )