views:

83

answers:

2

I have a VC++ dll library which is built (with Visual Studio 2003) on Windows XP machines ( a US-English PC and a German PC). The source code is the same and does not have any language specific code. The Release version of the dll built on the German PC is approx 30 MB whereas the dll built on the US-English PC is approx 7 MB.

What could be the reason for this? Is this normal?

+1  A: 

Not a lot of information to go on. If I were to take a guess, maybe you are static linking a different set of libs perhaps.

Use "dumpbin" on both dlls and see what is different.

Zac Bowling
I have copied the complete folder structure (with the solution and project files) and recompile them on the other PC. There is no difference in the project or sources.
Karthick
There are a lot more files used in generating your exe. These are included as part of the VC++ development environment. What is most likely the cause of your bloat is that these extra libraries are international versions and contain additional resources for different locales. If these were being statically linked, the final exe would be bigger. Again, the dumpbin util should indicate this.
Sam Pride
A: 

Perhaps one machine is configured to produce a debug build.

kem