Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

how to programmatically add .lib files as linker input in vc++ 2010?


  • Please log in to reply
1 reply to this topic

#1 freiza


    CC Resident

  • Advanced Member
  • PipPipPipPip
  • 56 posts

Posted 17 March 2012 - 04:11 PM

On reading msdn I found this:

property String^ AdditionalDependencies {
	String^ get ();
	void set (String^ value);

But I didn't understand anything. I have never seen anything like " String^ " .
  • 0

#2 kernelcoder


    CC Devotee

  • Expert Member
  • PipPipPipPipPipPip
  • 990 posts
  • Location:Dhaka
  • Programming Language:C, Java, C++, C#, Visual Basic .NET
  • Learning:Objective-C, PHP, Python, Delphi/Object Pascal

Posted 11 April 2012 - 09:15 PM

It seems this is the programming way. Follow the steps below to do manually same in Visual Studio.
  • Right click on the project in which you want to use/set library
  • Click on Properties from context-menu
  • In the window, select 'Configuration Properties' --> 'Linker'
  • In the 'General' page, set the value for 'Addition Library Directories' to the path where the library/dll resides.
  • Then go the 'Input' page. Set the 'Additional Dependencies' value to the libraries/DLLs you want to use, separated by space (or one per line in the library input popup).
  • Now rebuild

  • 0

Also tagged with one or more of these keywords: vc++

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download