Mail Archives: djgpp/1997/06/19/23:07:09
Gerritt Baer wrote:
>
> I just installed djgpp and when compiling an EXTREMELY simple program
> like so :
>
> #include <iostream.h>
>
> void main()
you mean int main(void), right. well, ok it's c++ so you can get away
with int main(). there you just saved a keystroke.
> I get a 187k executable even when using the -O option. am I using the
> wrong thing to compile with? I do a
-O option does not really have anything to do with size. read about it
in the docs by typing
info gcc invoking optimize
>
> gxx -O -o blah.exe blah.cpp
>
> gcc doesnt work at all
you need to link the io streams library explicitly or use gxx. this is
in README.1ST.
> it cant find the iostream.h library for some
that is a header file. it will find the header no problem. it does need
to be told to link the library. again, read README.1ST.
read the FAQ or the mailing archives regarding questions on the size.
>I usually cant find my origianal thread on usenet.
hmmmm. does that say something about missing README.1ST/FAQ?
anyway, e-mailed and posted. however, try to keep your responses to the
newsgroup.
--
Sinan
*******************************************************************
A. Sinan Unur WWWWWW
|--O+O
mailto:sinan DOT unur AT cornell DOT edu C ^
http://www.people.cornell.edu/pages/asu1/ \ ~/
Unsolicited e-mail is _not_ welcome, and will be billed for.
*******************************************************************
- Raw text -