Author Topic: Question on filesizes  (Read 3956 times)

Offline nime1

  • Multiple posting newcomer
  • *
  • Posts: 22
Question on filesizes
« on: October 18, 2010, 02:28:09 pm »
Hello,
I am C++ beginner so my question can be fullish but I think it is worth to ask.
I made middle complicated gui with wx which after compiling produces exe about 120 kb.
I also try C programming for opening files, read/write structs and so and noone example produces exe file larger than 50 kb.
But, when I just include c++ header (even without using its functions) like <string>, <iomanip>, <fstream>, <iostream> and so file size of such program grows rapidly from 400kb+ to over a 800kb+ for wery little programs I tested.

Now, is this a normal behaviour or simply (what is in most cases) I dont adjust something on compiler options and what should I do to avoid those large files for small programs, if anything.

Thanks.

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Question on filesizes
« Reply #1 on: October 18, 2010, 02:55:47 pm »
This is a Code::Blocks forum only, not a C++ programming board...
Kernel Extremist - PedroM power ©

Offline nime1

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Question on filesizes
« Reply #2 on: October 18, 2010, 05:28:40 pm »
Did I need to say that I'm using codeblocks?
Or did you want to say that this problem is not C::B related?

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Question on filesizes
« Reply #3 on: October 18, 2010, 05:44:58 pm »
I mean this problem is not C::B related. Your answer is about programming languages and compilation/linking methods.
Kernel Extremist - PedroM power ©

Offline nime1

  • Multiple posting newcomer
  • *
  • Posts: 22
Re: Question on filesizes
« Reply #4 on: October 18, 2010, 05:52:12 pm »
So what do you think where I should look?
Some MinGW forums?

Offline Folco

  • Regular
  • ***
  • Posts: 343
    • Folco's blog (68k lover)
Re: Question on filesizes
« Reply #5 on: October 18, 2010, 06:09:56 pm »
Exactly.
Kernel Extremist - PedroM power ©