I downloaded Borland C++BuilderX today to use for messing around in C++, but it seems that the .exe files it produces are huge. For example, the following code is over 250 kb.
#include <iostream.h>
int main() {
int name;
cout << "How old are you? ";
cin >> name;
cout << "Wow, " << name << " years old huh?" << '
';
cin.ignore(80,'
');
cout << "Press [Enter] to continue";
cin.get();
return 0;
}
Does anyone know of a default setting that would be causing this or something else maybe?
As you can see, the statically linked binaries are much larger… I could get the dynamic binary down to 5.2k with strip (strips binaries of cruft) and the static one down to 875k.
Look in the linking options and see if there is an option for “dynamic linking”
While C++ is a bloated language, there’s something not set up right if it’s building 250k binaries for something that simple…