M
mel olonsky
Hi,
I have a very small HelloWorld application.
Then I need one class from a huge vector calculation
static library.
void main()
{
cout >> "hello";
CVector myvec;
myvec.Set(25,25,0);
myvec.GetAngle();
}
The result is a 1MB exe because the vector lib is really huge.
But shouldn't the linker be smart enough to just link the required
code instead of blowing up my application??
I generated a mapfile and see that it contains a lot of unused static
lib
functions.
Is there a way to force the linker to not add all this unused stuff.
Is this a matter of include files? As soon as I include a header file
the linker will link-in all content of this file.
Or where is the logic about this?
I'm using VS.Net 2003
I need your help
Please give me some hints
-Mel
I have a very small HelloWorld application.
Then I need one class from a huge vector calculation
static library.
void main()
{
cout >> "hello";
CVector myvec;
myvec.Set(25,25,0);
myvec.GetAngle();
}
The result is a 1MB exe because the vector lib is really huge.
But shouldn't the linker be smart enough to just link the required
code instead of blowing up my application??
I generated a mapfile and see that it contains a lot of unused static
lib
functions.
Is there a way to force the linker to not add all this unused stuff.
Is this a matter of include files? As soon as I include a header file
the linker will link-in all content of this file.
Or where is the logic about this?
I'm using VS.Net 2003
I need your help
Please give me some hints
-Mel