Adding a .lib file to a project in Visual Studio 2015

I created a .lib file from another project that I would like to use in my project. I added the file in Linker -> Input -> Additional dependencies as bluetoothserialport.lib .

I added a lib file inside my project at this level: http://i65.tinypic.com/1t9fki.jpg

However, I get the following error:

1> LINK: fatal error LNK1104: cannot open file 'bluetoothserialport.lib'

I am using Windows 10 and C ++.

+7
c ++ windows visual-c ++ visual-studio static-libraries
source share
1 answer

If you come from the background of Xcode, you can expect a reasonable IDE to know that all things are in the project. Visual Studio is not such a development environment.

You need to explicitly go to Linker -> General -> Additional Library Directories and add the path to your .lib there.

0
source share

All Articles