By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,965 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,965 IT Pros & Developers. It's quick & easy.

How to Link with .lib file -- UuidCreate()

P: 18
I am getting this error when i attempt to use UuidCreate( &uuid );

LNK2019: unresolved external symbol __imp__UuidCreate@4

After some googling, i saw i have to link with Rpcrt4.lib

I am using VS 2003 and not familiar with linking at all.

1. How do I do linking?
2. Do I link with .lib file or .dll file?

Thanks in advance.
Mar 9 '08 #1
Share this Question
Share on Google+
2 Replies


Banfa
Expert Mod 5K+
P: 8,916
You link with the lib file and need to have the dll present for running.

Linking is done as part of the Build for you, I am not familiar with VS2003 (I skipped that version) but if you open the project properties or setting you should be able to find a section to alter the linker options and somewhere in there there will be a place to enter additional libraries to link against.
Mar 9 '08 #2

P: 18
You link with the lib file and need to have the dll present for running.

Linking is done as part of the Build for you, I am not familiar with VS2003 (I skipped that version) but if you open the project properties or setting you should be able to find a section to alter the linker options and somewhere in there there will be a place to enter additional libraries to link against.

thanks! just found it.. under Configuration Properties->librarian-> Command Line

and type Rpcrt4.lib in Addition options text box..
Mar 10 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.