开发者

Change Name of Outputted DLL

开发者 https://www.devze.com 2022-12-25 22:44 出处:网络
If my project name is ABC and the DLL currently outputs as ABC.DLL, how can I make my DLL be outputted as say CBA.DLL and so that when the .LIB is compiled linked against, it is not looking for ABC.DL

If my project name is ABC and the DLL currently outputs as ABC.DLL, how can I make my DLL be outputted as say CBA.DLL and so that when the .LIB is compiled linked against, it is not looking for ABC.DLL, but CBA.DLL. I tried changing the name under Linker > General > Output File but when I linked to the .lib in my other application, it was still loo开发者_JAVA百科king for ABC.DLL and CBA.DLL.


No repro, the .lib file has the correct DLL name. The original name is not present at all.

But, don't make the same mistake I first made. Use cba.lib, not abc.lib.


What you did was correct. I built a DLL in VS2005, using the name ABC, then changed the output to CBA, my bin directory contained both DLLs (even after a clean). Frag those, rebuild it, and ensure that in your main application you have removed all references to ABC.LIB/DLL and you should be good.

0

精彩评论

暂无评论...
验证码 换一张
取 消