How to solve Link Error on call to ::UuidToString()?

倖福魔咒の 提交于 2019-12-20 02:16:52

问题


I have included file "rpcdce.h" for ::UuidToString() function.

Still i am getting link error . Can anyone help me ?


回答1:


Header files don't solve linker errors, they create them. You'll have to add rpcrt4.lib to the linker's Input + Additional Dependencies setting. Or paste this in your source code file:

#pragma comment(lib, "rpcrt4.lib")



回答2:


See http://msdn.microsoft.com/en-us/library/aa379352%28VS.85%29.aspx - this seems to indicate that you need to link with Rpcrt4.lib.



来源:https://stackoverflow.com/questions/1991941/how-to-solve-link-error-on-call-to-uuidtostring

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!