解决: libcimtd.lib not found, rpcndr.lib not found
在编译Inside COM这本书的代码的时候. 报这个错. 毕竟1996年的代码...
原因很简单:
libcimtd.lib 是 VC6时代的东西(对应着iostream.h)...现在的MS编译器不用这货了
rpcndr.lib 也过时了
If your code depends on libcimtd.lib, it uses old iostream library that has been removed in VS2003.
解决办法:
把iostream.h修改为iostream, 并且把link指令中的libcimtd.lib替换为libcpmtd.lib
用rpcrt4.lib代替rpcndr.lib即可
参考资料:
https://technet.microsoft.com/zh-cn/aa293346
https://social.msdn.microsoft.com/Forums/vstudio/en-US/5cc010b1-1a9b-4e39-8778-c6543f0ed86c/linking-libcimtdlib-requested?forum=vcgeneral
https://social.msdn.microsoft.com/Forums/zh-CN/f0182e79-2f7b-4df7-aa33-7d1daf2fd865/libcimtdlib-not-found?forum=Vsexpressvc
https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/ba618055-2c35-4936-ac25-bd56c11c0edc/rpcndrlib-not-shipped-with-platform-sdk?forum=windowssdk