05-23-2022 07:13 AM
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.
05-24-2022 06:53 AM
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.
05-30-2022 01:21 AM
Okey, thanks!