1. 程序里加上#pragma comment( lib, "your_lib_path" ),这个每次都要添加; 2. 使用LoadLibrary(dllpath)动态载入; 3. 把相应的lib和dll拷到system32下,这样就不用重复添加了,但放到系统目录里感觉不爽。