Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a .lib file to a project in Visual Studio 2015 [duplicate]

I have generated a .lib file from another project that I would like to use in my project. I have added the file to LinkerInputAdditional dependencies as bluetoothserialport.lib.

I've added the 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++.

like image 564
john g Avatar asked Apr 22 '16 05:04

john g


1 Answers

If you come from an Xcode background you might expect a reasonable IDE to know what all the things in a project are. Visual Studio is not such an IDE.

You need to, explicitly, go to the LinkerGeneralAdditional Library Directories, and add a path to your .lib there.

like image 51
Chris Becke Avatar answered Sep 26 '22 02:09

Chris Becke