Solved

How to create one static library that includes other libs?

Posted on 2009-03-30
3
505 Views
Last Modified: 2013-12-14
I am making a static library A.LIB, which uses a function from another static library B.LIB.

How can I build library A.LIB so that when I use it I do not need to have B.LIB?
I am using Visual studio 2005

Thanks
0
Comment
Question by:romanm
  • 2
3 Comments
 
LVL 49

Accepted Solution

by:
DanRollins earned 500 total points
ID: 24023179
You could extract OBJ files from B.LIB and them to A.LIB  Of course, you would also need all of the functions that were used in the extracted OBJ...
   LIB Reference
   http://msdn.microsoft.com/en-us/library/7ykb2k5f(VS.71).aspx
0
 
LVL 3

Author Closing Comment

by:romanm
ID: 31564506
True, that is one way, and in a simple case easy to do.
However for the MS Visual Studio, in the Properties -> Librarian, set "link library dependencies" to "yes" and that will do all the hard work for you.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 24024407
True... Using Properties -> Librarian should do the heavy lifting.  
I'm most familar with command-line tools and VS 6, so I missed that possibility.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question