LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Combine multiple .lib files into one .lib file

Is it possible to combine multiple .lib files into a singles one that can be used in future projects? 


I tried including a .lib file into a project where i build a new .lib file, but when i try to use that new .lib file in a new project i get "undefined symbol" error if do not include the original .lib file.

 

 

0 Kudos
Message 1 of 3
(1,380 Views)

The Microsoft C lib tool should be able to do that but it's a lot of work for little gain, other than not having to add all the individual libs to your project.

lib.exe /OUT:libab.lib liba.lib libb.lib

 

Disadvantages:

- Everytime you make a new build of any of the libs you have to recreate your combined lib too.

- It makes version control of your libraries a lot more complicated.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(1,347 Views)

Okey, thanks!

0 Kudos
Message 3 of 3
(1,317 Views)