468,513 Members | 1,751 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

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

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
2 9641
Banfa
9,056 Expert Mod 8TB
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
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.

Similar topics

1 post views Thread by Andrew Chanter | last post: by
2 posts views Thread by JenHu | last post: by
6 posts views Thread by Ozz | last post: by
reply views Thread by kain razial | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.