How to add a path for "libeay32.lib" at the solution level on VS2015

80 Views Asked by At

I'm trying to build a solution , but I'm getting the following linker error :

"error LNK1104: cannot open file 'libeay32.lib'".

I have the library in the source code but I can't find a way to put it in the solution.
Any help would be appreciated

I found a way to add the library at the project level but i want to add it at the solution level

1

There are 1 best solutions below

0
wohlstad On

Linker settings (as well as compiler settings) in Visual Studio are always per project.
There is no way to add them in the solution level.

If you would like to share settings between several projects, then as @ AlanBirtles commented, you can create a property-sheet and add it to the relevant project(s).

From MS documentation for VS2015:

To create a property sheet:

  1. On the menu bar, choose View > Property Manager or View > Other Windows > Property Manager. The Property Manager opens.
  2. To define the scope of the property sheet, select the item to which it applies. This item can be a particular configuration, or another property sheet. Open the shortcut menu for this item and then choose Add New Project Property Sheet. Specify a name and location.
  3. In Property Manager, open the new property sheet and then set the properties you want to include.

See more about it here: VS2015: Share or reuse Visual Studio project settings.