G
Guest
Hi,
I would like to create a static library that uses and in effect adds to
another static library. I could simply add functionality to the existing
library, but functionally it doesn't really belong there... that is, the one
library is very inspecific. The Library I need to create will be project
specific, and I prefer not to have to mix the two... in any case, I tried to
create a library that referenced the first library. I added the library
(such_n_such.lib) to the "Additional Dependencies" property, under the
Librarian category in the project properties (I'm using VS2003, btw). Then,
immediately below that, I added the configuration dependent path in the
"Additional Library Directories" property (e.g. -
C:\Code\...\$(ConfigurationName))
Now, before I added a single line of code to the wizard generated
project, it compiled, giving me tons of warnings about such and such already
exists. It appeared to have been trying to build both the .lib file and all
of the .obj files in the directory. And when it was done, the library file
that it built was almost three times the size of the library that I was
trying to include. Now, I know relatively little about staticly linked
libraries, but I was under the impression that when you statically link, it
only brings in the portions of that library that are used... so does anyone
have any idea why I am getting these odd results or what I can do to bring
about the desired results?
I would like to create a static library that uses and in effect adds to
another static library. I could simply add functionality to the existing
library, but functionally it doesn't really belong there... that is, the one
library is very inspecific. The Library I need to create will be project
specific, and I prefer not to have to mix the two... in any case, I tried to
create a library that referenced the first library. I added the library
(such_n_such.lib) to the "Additional Dependencies" property, under the
Librarian category in the project properties (I'm using VS2003, btw). Then,
immediately below that, I added the configuration dependent path in the
"Additional Library Directories" property (e.g. -
C:\Code\...\$(ConfigurationName))
Now, before I added a single line of code to the wizard generated
project, it compiled, giving me tons of warnings about such and such already
exists. It appeared to have been trying to build both the .lib file and all
of the .obj files in the directory. And when it was done, the library file
that it built was almost three times the size of the library that I was
trying to include. Now, I know relatively little about staticly linked
libraries, but I was under the impression that when you statically link, it
only brings in the portions of that library that are used... so does anyone
have any idea why I am getting these odd results or what I can do to bring
about the desired results?