User forums > Using Code::Blocks

Question on filesizes

(1/2) > >>

nime1:
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.

Folco:
This is a Code::Blocks forum only, not a C++ programming board...

nime1:
Did I need to say that I'm using codeblocks?
Or did you want to say that this problem is not C::B related?

Folco:
I mean this problem is not C::B related. Your answer is about programming languages and compilation/linking methods.

nime1:
So what do you think where I should look?
Some MinGW forums?

Navigation

[0] Message Index

[#] Next page

Go to full version