如何配置DLL的Debug版本和Release版本?
我编写了一个动态链接库,想将Debug版本和Release版本分别用不同的文件名区分开来,在Debug版本的.lib和.dll前加d,而Release版本的不加。
我在Debug版本中做了如下设置/out:"../Debug/ImageDllD.dll" /implib:"../lib/ImageDllD.lib"
在编译时出现了如下警告:
ImageDllD.exp : warning LNK4070: /OUT:ImageDll.dll directive in .EXP differs from output filename "../Debug/ImageDllD.dll"; ignoring directive
在Debug版本连接到使用此动态链接库的程序中,程序运行后,却仍然要找ImageDll.dll,而不是找ImageDllD.dll。
请教各位高人,如何解决?