还是再贴一遍吧,反正问题还没得到彻底解决。
我将Debug 版 output file name 改成testd.dll后编译出现如下警告:
testd.exp : warning LNK4070: /OUT:test.dll directive in .EXP differs from output filename "Debug/testd.dll"; ignoring directive
然后在testdemod.exe里用的时候就说找不到test.dll
只有将testd.dll改名成test.dll才可用
但我从网上下的例子却是可以用的。
仔细检查终于发现是testd.lib里的Dll文件名仍为test.dll
而网上的例子编译出的*.lib里的却是*d.dll。
我想是编译设置的问题,但找了好久也不知道具体在哪里改。
请问该如何解决上面的问题?
谢谢!
我将Debug 版 output file name 改成testd.dll后编译出现如下警告:
testd.exp : warning LNK4070: /OUT:test.dll directive in .EXP differs from output filename "Debug/testd.dll"; ignoring directive
然后在testdemod.exe里用的时候就说找不到test.dll
只有将testd.dll改名成test.dll才可用
但我从网上下的例子却是可以用的。
仔细检查终于发现是testd.lib里的Dll文件名仍为test.dll
而网上的例子编译出的*.lib里的却是*d.dll。
我想是编译设置的问题,但找了好久也不知道具体在哪里改。
请问该如何解决上面的问题?
谢谢!
瞪大眼睛再仔细看了一遍,原来
例子的def文件LIBRARY前面有一逗号,ft!
是我太不细心了
test program must rebuild all for test when you change .lib