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 .lib
s in this folder?
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.
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 .
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.
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"
You should just be able to write "someFolder/*.lib" where you have to specify the libraries to link against
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With