Infinity88
Programmer
NOTE: In no step along the way am I outputting DEBUG info
The setup:
I created a static library with a single, simple class in it:
I compile the LIB file and all is well. Then I create a Win32 project which imports my xTest.lib. It does a few things, but the worth noting part is when I do this:
If I don't use that xt var, and compile the exe (no debug info), it comes out to about 68k, acceptable. HOWEVER, if I do nothing more than change the above line to:
And compile, the exe is now 680K!! Note that no where else in the program do I use the new operator.
I've been fishing around in the link settings, debug settings, etc, for the last 4 hours and NOTHING effects the exe size. What is going on???? its as if somehow the new operator is pulling in libraries left and right. I could understand a minimal increase in exe size, but 680K???!?! Damn.
The setup:
I created a static library with a single, simple class in it:
Code:
class xTest
{
int Test() { return 1; }
}
Code:
xTest *xt;
If I don't use that xt var, and compile the exe (no debug info), it comes out to about 68k, acceptable. HOWEVER, if I do nothing more than change the above line to:
Code:
xTest *xt = new xTest();
And compile, the exe is now 680K!! Note that no where else in the program do I use the new operator.
I've been fishing around in the link settings, debug settings, etc, for the last 4 hours and NOTHING effects the exe size. What is going on???? its as if somehow the new operator is pulling in libraries left and right. I could understand a minimal increase in exe size, but 680K???!?! Damn.