开发者

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

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

Still i am getting link error开发者_StackOverflow中文版 . Can anyone help me ?


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")


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜