Mail Archives: djgpp/1998/09/04/22:48:25
On Fri, 04 Sep 1998 17:39:55 -0600, Jason <jpsaave AT sandia DOT gov> wrote:
>Well, I tried using gxx and it worked! It kinda pisses me off that
>DJGPP never gives examples of compiling C++ progs from the command line
>- I was given the impression that I only needed to use gcc and it would
>do everything for me, since that's what the DJGPP User's Guide said on
>the website. I guess that's what you can expect from a free compiler
>huh? :O)
>
'It kinda pisses me off' that you have that attitude, because you have
your facts wrong. And despite being a free compiler you wrote the ng
and got one correct answer.
There are noting wrong with the docs., you -do- only need gcc. Try
this:
gcc -o program.exe <file1> <file2> ... -lstdcxx
Putting that -lstdcxx links in the C++ libraries (like iostream,
etc.). Adding this is effectively the same as running gxx.
All this can be found out by reading the INFO docs. on gcc.
But you want examples of compiling c++ programs? well there are some
on simtel.net, in the same place where you got it. Try
v2misc/Examples.tgz or v2/djtst201.zip (djtst202.zip if you are using
the alpha of 2.02)
AFAIK these are both recommended by either the FAQ or the DJGPP user's
guide (esp. djtst201.zip)
So I hope this helps. And remember, if you still think the docs.
aren't good enough, feel free to volunteer to help and make them
better. That's what DJGPP is all about.
Brett
- Raw text -