Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: nime1 on October 18, 2010, 02:28:09 pm

Title: Question on filesizes
Post by: nime1 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.
Title: Re: Question on filesizes
Post by: Folco on October 18, 2010, 02:55:47 pm
This is a Code::Blocks forum only, not a C++ programming board...
Title: Re: Question on filesizes
Post by: nime1 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?
Title: Re: Question on filesizes
Post by: Folco 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.
Title: Re: Question on filesizes
Post by: nime1 on October 18, 2010, 05:52:12 pm
So what do you think where I should look?
Some MinGW forums?
Title: Re: Question on filesizes
Post by: Folco on October 18, 2010, 06:09:56 pm
Exactly.