LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 3 条)
1,893 次查看

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
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 项奖励
2 条消息(共 3 条)
1,860 次查看

Okey, thanks!

0 项奖励
3 条消息(共 3 条)
1,830 次查看