3 questions about MinGW
Hello!
I've recently migrated from VC++ to MinGW (to try!) and I have 2 questions :
1) I would like to understand why when I build an exe with VC++ which is about 24 Ko, the same is more than 430 Ko with gcc! (this when I use iostream, with printf() this is about 22 Ko)
2) I've the Warning "no new line at end of file". Why this is important for gcc ???
thx.
[edit: third question ;p]
3) My program is composed of 3 files: main.cpp, bitmap.cpp and bitmap.h.
main.cpp includes iostream, iomanip, fstream, string, time.h and "bitmap.h".
bitmap.cpp includes fstream and "bitmap.h".
bitmap.h includes nothing.
there is no include of a windows file header anywhere.
However, when I put the definition of tagBITMAPFILEHEADER, tagBITMAPCOREHEADER or another struct from wingdi.h, I get an error that it was already defined in wingdi.h! Where does it come from? Is wingdi.h always included with mingw??? (I wish someone understand me :F My english is not very good)
[edited by - V3rt3x on December 6, 2002 4:05:42 PM]
[edited by - V3rt3x on December 6, 2002 4:23:14 PM]
1) Dynamic linking.
2) It shouldn''t break anything but it''s rude to have text files with no trailing newline.
2) It shouldn''t break anything but it''s rude to have text files with no trailing newline.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement