Mail Archives: djgpp/1997/06/19/19:30:21
Gerritt Baer wrote:
> I get a 187k executable even when using the -O option. am I using the
> wrong thing to compile with? I do a
>
> gxx -O -o blah.exe blah.cpp
Put a `-s' on the command line. A lot of the 187k is symbols (will still
be ~100k due to libiostream.a).
>
> gcc doesnt work at all, it cant find the iostream.h library for some
> reason, is it supposed to work? If you could reply via email it would
> help me out a bunch, I usually cant find my origianal thread on usenet.
> Thanks a bunch.
gcc DOES work, you just have to include a `-liostream' (or '-liostr' if
under w59 with lfn) at the end of the command line. gxx does this for
you.
Just because you include a header file does NOT mean the libaray will be
linked in (works for the standard C headers because libc is always
linked in for you).
Bill
--
Leave others their otherness.
- Raw text -