c++ - How to generate static lib that contains all its dependencies? -


I am working on a project where we need to separate the mathematical routine of our application for an independent SDK The application, which will be consumed by another application.

To avoid over the creation of export definitions, we thought about creating a static Lib. The point here is that these mathematical routines are dependent on other lbs, so the customer must also include them.

My question is how can we create a static lib that has all dependencies? Let me assume that I am trying to create a static lib C1.lib which depends on D1.lib, D2.lib and D3.lib. Now a client application that requires the use of C1.lib, must also provide a list of D1, D2 and D3 as its dependency.

Is it possible to do this also in Windows? How can this be done or why it can not be done but any explanation will really be helpful.

If you select librarian & gt; Normal You can add d1.lib, d2.lib, and d3.lib under additional dependency . They will be added to your output lab

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -