Angella Andrea - English Blog

Infinite passion for software development !
posts - 15, comments - 20, trackbacks - 16

Adding libraries and headers in Visual C++ 2010


When you need to use a library in your C++ application you should tell the following things to the compiler:

  1. The name of the lib file
  2. The folder where to find the lib file
  3. The folder where to find the header file

In this post, I show how you can do this using Microsoft Visual Studio 2010. All the options are available as Properties of your current project.

Right click the project name under the Solution Explorer and select Properties from the dropdown menu:

properties

 

You can add all the names of your libraries in the “Configuration Properties –> Linker –> Input“ section:

 

lib


At the end, you can set the lib folders (“Library Directories”) and the headers folders (“Include Directories”) in the “Configuration Properties –> VC++ Directories” section.

 

folders

Print | posted on sabato 29 maggio 2010 16:11 | Filed Under [ C++ ]

Comments have been closed on this topic.

Powered by:
Powered By Subtext Powered By ASP.NET