C++ programs using the Standard Template Library (ie/ #include ) cause a large part of the library to be statically linked into the binary. The need to statically link the stdc++ into the binary is two fold. First MSVCRT.dll does not contain C++ stdlib constructs. Second the legal implications of generating a libstdc++.dll are restricted by the licensing associated with the library. If you wish to keep your file size down use strip to remove debugging information and other verbatim found in the binary.
strip --strip-all SOMEBINARY.exe
strip --strip-all SOMEBINARY.exe
'Dev > C++' 카테고리의 다른 글
A member template cannot be virtual (0) | 2007.05.14 |
---|---|
sgi STL - Why does Bounds Checker™ say that I have memory leaks? (0) | 2007.05.14 |
Why doesn't C++ provide a "finally" construct? (0) | 2007.05.14 |
loop, 템플릿 메타프로그래밍 버전.. (0) | 2007.05.13 |
bind, lambda 예제 (1) | 2007.05.11 |