link static library in c++ visual studio <p>can someone please help me to understand the process.</p> <p>in c++ visual studio 2010 </p> <p>i have a visual studio solution (lets call it mysol)</p> <p>i have a project built as a static library (let's call it staticprj) staticprj needs to use a library from outside (lets call it ext.lib)</p> <p>in the body of the source code of staticprj i include outside library header file with # include extlib.h and make calls to some of its functions (let call them extfunctions()) i also include the the path to the header files location of the ext.lib.</p> <p>the staticprj compiles okay without errors</p> <p>the mysol also has another project which is a dynamic library (dynprj) and which depends on the staticprj. </p> <p>also in the source files of the dynprj uses functions from outside library.</p> <p>i have included #include extlib.h in the source code of dynprj. i have included the path of the header files i have attached extlib.h directly to the dynprj i have also added ext.lib to the linker input (along with the path where the ext.lib resides).</p> <p>i still get a lnk2001 error stating that extfunctions() where not found.</p> <p>the whole structure (the mysol solution) compiles okay if i do not use ext.lib at all. </p> <p>my question is how does the linking process works and what can i do to correct this linking error.</p> <p>(note that without the presence of ext.lib my linking of the staticprj and dynprj is fine. my compilation works okay and my code works. i only get the linking error when i try to link another ext.lib to staticprj and dynprj and use functions from ext.lib)</p> <p>thanks in advance.</p>