How to check if a Library file is available to the project or not ?
-
you have to add the library to the linker input libraries (select, in menu
Project->Settings
, theLink
tab, then add the library name in theProject Options
list). Hope that helps. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
Thanks for your reply. But that is with visual studio 6.0. I know that. But I have just upgraded to Visual studio 2005. Can you tell me how to add the library file in that one ? Thanks for prompt reply. Nikhs Nikhil Trivedi
-
If you are using of vs2005 it installed library files(necessary ) on your machine but anyway You can add this code to your source file
#pragma comment(lib, "Ws2_32.lib")
Whats your application type?(Console)
WhiteSky
Thanks. That worked ! Can you just tell me how to add the library file in the project in Visual Studio 2005 ? Thanks for prompt reply. Nikhs Nikhil Trivedi
-
I didn't find anywhere Linker option. I am using Visual studio 2005. It is not in Project tab and not even in Tools->options tab where we can add the directory paths Can you tell me where to add the library file in Visual Studio 2005? Thanks for prompt reply. Nikhs Nikhil Trivedi
Nikhil Trivedi wrote:
It is not in Project tab
Yes it is: you need to have a project opened and then you will have a menu '.... Properties' (where '....' is the name of your project).
Cédric Moonen Software developer
Charting control [v1.2 - Updated] -
Thanks for your reply. But that is with visual studio 6.0. I know that. But I have just upgraded to Visual studio 2005. Can you tell me how to add the library file in that one ? Thanks for prompt reply. Nikhs Nikhil Trivedi
Yes, that was on VS6. On VS2003 (the one I have), you have to select menu
Project->Project properties
then theLinker
node and finally selectCommand line
and add the library name toadditional options
list. :) Please note, actually names maybe a bit different, I translated from my version (Italian) one.If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
-
Thanks. That worked ! Can you just tell me how to add the library file in the project in Visual Studio 2005 ? Thanks for prompt reply. Nikhs Nikhil Trivedi
I think you asked and I answered to you did you see my previous message?
WhiteSky
-
Thanks. That worked ! Can you just tell me how to add the library file in the project in Visual Studio 2005 ? Thanks for prompt reply. Nikhs Nikhil Trivedi
Go 'Project' -> 'Project Properties' -> open 'Configuration Properties' -> open 'Linker' -> open 'Input' -> add the .lib file to 'Additional Dependencies'.
Too many passwords to remember? Try KeePass Password Safe!
-
Go 'Project' -> 'Project Properties' -> open 'Configuration Properties' -> open 'Linker' -> open 'Input' -> add the .lib file to 'Additional Dependencies'.
Too many passwords to remember? Try KeePass Password Safe!
Thanks. Your answer was perfect. I got it. Thanks to you and all that helped me. Nikhs Nikhil Trivedi
-
Yes, that was on VS6. On VS2003 (the one I have), you have to select menu
Project->Project properties
then theLinker
node and finally selectCommand line
and add the library name toadditional options
list. :) Please note, actually names maybe a bit different, I translated from my version (Italian) one.If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
CPallini wrote:
On VS2003 (the one I have), you have to select menu Project->Project properties then the Linker node and finally select Command line and add the library name to additional options list.
Heh :) I add them in Project properties->Linker->Input->Additional Dependencies. The last time I mentioned that, somebody reminded me you can just add it to the tree in solution explorer LOL Cheers, Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
-
CPallini wrote:
On VS2003 (the one I have), you have to select menu Project->Project properties then the Linker node and finally select Command line and add the library name to additional options list.
Heh :) I add them in Project properties->Linker->Input->Additional Dependencies. The last time I mentioned that, somebody reminded me you can just add it to the tree in solution explorer LOL Cheers, Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
-
Go 'Project' -> 'Project Properties' -> open 'Configuration Properties' -> open 'Linker' -> open 'Input' -> add the .lib file to 'Additional Dependencies'.
Too many passwords to remember? Try KeePass Password Safe!
your answer was step by step :)
WhiteSky