工程右键,属性(properties)建立(build)-> project defaults -> configuration Type 选择 static library(如果动态库,就选dynamic library)