|
-
October 26th, 2005, 11:34 PM
#1
link library problem
I want to use a specific library in my VC project. I added the directory of the library into Windows environment path. But when I compiled and linked my code, I still got a "cannot open file XXX.lib" link error? What should I do? Thank you so much!
OS: Windows XP
MS VC++ 6.0
-
October 26th, 2005, 11:42 PM
#2
Re: link library problem
Go to Project->Settings->Link tab->Select Category Input
In the "additional library path" provide the path of the lib file
-
October 26th, 2005, 11:53 PM
#3
Re: link library problem
 Originally Posted by olin
I want to use a specific library in my VC project. I added the directory of the library into Windows environment path. But when I compiled and linked my code, I still got a "cannot open file XXX.lib" link error? What should I do? Thank you so much!
OS: Windows XP
MS VC++ 6.0
You can try to copy *.lib files what you want to your project folder , it will not appear any more .
Hope this post help you .
Cheers.
-
October 27th, 2005, 12:49 AM
#4
Re: link library problem
In addition to Kirants, have a look at #pragma comment
-
October 27th, 2005, 03:23 AM
#5
Re: link library problem
My dime:
 Originally Posted by olin
I want to use a specific library in my VC project. I added the directory of the library into Windows environment path.
PATH environment variable is used for searching of exacutables. For library searching LIB environment variable exists.
Best regards,
Igor
-
October 27th, 2005, 09:47 AM
#6
Re: link library problem
 Originally Posted by kirants
Go to Project->Settings->Link tab->Select Category Input
In the "additional library path" provide the path of the lib file
Thank you! It works!
-
October 27th, 2005, 12:17 PM
#7
Re: link library problem
You are welcome
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|