Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In visual studio how to include all .libs in a folder

I am trying to build a project with another project. There are a lot of libs in there and I am not sure where the required unreferenced symbols are present.

Is there a way I can include all the .lib files while compiling?

I have given the lib directory as an additional input to the linker, yet it asks for individual .lib files to be included. Is there an option to say include all .libs in this folder?

like image 470
AMM Avatar asked Nov 12 '11 09:11

AMM


People also ask

How to include Cpp library?

Right-click on the application project node in Solution Explorer and then choose Properties. In the VC++ Directories property page, add the path to the directory that contains the LIB file to Library Paths. Then, add the path to the library header file(s) to Include Directories.

How do I add additional dependencies in Visual Studio?

Configuration Properties => Linker => General => Additional Library directories. Here you list out the "lib" directories that you want to be searched and made available. Configuration Properties => Linker => Input => Additional dependencies. Here you explicitly specify the .

How do I find a folder in Visual Studio?

Right click on the solution of the project and select 'Open folder in Windows Explorer' There you will find all your files related to the current project.


2 Answers

bigD's answer is right.

The place you would actually do this, in VS 2012 at least, is by right-clicking on the project, then going:

Properties > Configuration Properties > Linker > Command Line > Additional Options

In that box, you would just type:

"[libFolder]\*.lib"

You can have multiple locations by separating locations with a space, like so:

"[libFolder1]\*.lib" "[libFolder2]\*.lib"
like image 193
Joshua Maiche Avatar answered Sep 19 '22 17:09

Joshua Maiche


You should just be able to write "someFolder/*.lib" where you have to specify the libraries to link against

like image 22
ds-bos-msk Avatar answered Sep 20 '22 17:09

ds-bos-msk