Alternate IO libs?
Iostream's generally massiveness is annoying me. I mean, like, something with stdio is 16 kbs. If you do the same thing with iostream, it compiles to 500 kbs. That's not cool :(
My immediate thought following that is to get cozy with stdio (which, like, has far more functionality than iostream anyway, from what I can tell); however, afaik, that's not too friendly with the STL, or C++-style strings. So I was wondering if there was an i/o lib that could interface with the STL properly, yet also not be... as utterly bloated as iostream is.
What kind of crazy compiler are you using? I can pump in windows, iostream, fstream, tons of em @ just 100kb with code. Their arent to many thing that iostream can do that others cant, but in the end if you add em all it'll compile to about the same size. Still, 500kb is massive, simply including iostream should not do that.
Stdio.h is the only alternative I know for simple console things, but their are probably others. I would reccomend just living with the 500kb file sence iostream is pritty standard. (Or getting a new compiler :P)
> I mean, like, something with stdio is 16 kbs
Are you kidding, that's why we code in ASM :rolleyes:
Seriously, it looks like you've mixed the debug build of one with the release version of the other.
Or dynamically linked with stdio, but statically linked with iostream.
Just compiling hello world, in C and C++, without and with debug
> which, like, has far more functionality than iostream anyway,
$ g++ foo.cpp && ls -l a.out
-rwxrwxr-x 1 xxx xxx 6396 Feb 4 08:38 a.out
$ gcc foo.c && ls -l a.out
-rwxrwxr-x 1 xxx xxx 4681 Feb 4 08:38 a.out
$ g++ -g foo.cpp && ls -l a.out
-rwxrwxr-x 1 xxx xxx 17604 Feb 4 08:39 a.out
$ gcc -g foo.c && ls -l a.out
-rwxrwxr-x 1 xxx xxx 5677 Feb 4 08:39 a.out
See, this is just comedy.