1、去掉DEF文件中的LIBRARY;
2、修改settings-link-output file name,改为希望的名字,比如debug的改为test_d.dll,release的不变。
1很重要,否则虽然生成了test_d.dll和test_d.lib,但是运行的时候会报告找不到动态链接库"test.dll",因为test_d.lib中使用的internal name是"test.dll",去掉DEF文件中的LIBRARY以后就没有这个问题了!
转自:http://blog.csdn.net/jia162/article/details/3300368