Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

visual-c++

com

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

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

like image 264
Ashish Avatar asked Jan 02 '10 15:01

Ashish


1 Answers

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")
like image 148
Hans Passant Avatar answered Sep 28 '22 23:09

Hans Passant