How to create one static library that includes other libs?

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
LVL 3
romanmAsked:
Who is Participating?
 
DanRollinsConnect With a Mentor Commented:
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
 
romanmAuthor Commented:
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
 
DanRollinsCommented:
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
All Courses

From novice to tech pro — start learning today.