Header files slow down the program
<p>My program have encountered a strange error: the header files slows the program down. I test the header file with empty code ( that is : <code>main() {}</code> ) and it takes 40s to run that empty code.</p>

<p>Header files .h  </p>

<pre><code>#include "stdafx.h" 
#include &lt;string&gt;

#ifndef LZ_H
#define LZ_H

extern int e,i;
extern std::string dic[1000000];
void init();

#endif
</code></pre>

<p>Functions file .cpp</p>

<pre><code>#include "lz.h"
#include "stdafx.h"
#include &lt;string&gt;

std::string dic[1000000];
int i=0;
int e=0;
std::string cstr(char c)                            
{  
    return std::string(1,c);  
}

void init()
{        
    for (e=0;e&lt;=255;e++) dic[e]=cstr(e);   
        e=e-1;        
}
</code></pre>

<p>Test main file .cpp  </p>

<pre><code>#include "lz.h"  
void main() {}
</code></pre>

<p>Result: 40s.
I have never faced such strange error before.</p>
