use linked library instead of header file