Mail Archives: djgpp/1997/06/23/12:00:06
On Wed, 18 Jun 1997, John Syers wrote:
> I just downloaded djgpp, with hopes of using it on my old 386/16.
>
> anyway, on my pentium i've had a lot of problems. I tried compiling the
> 'hello' program in c & c++. no luck at first; the error message said that
> it didn't recognize the directive (#include). When I moved the #include
You do not show the comand line that you used. I suspect that you named
your 'hello' program hello.c even though it contains C++ code and the 'C'
parser does not know what to do with it. You probably should have called
the file hello.cc. Also use gxx, not gcc, to link C++ modules as it
includes the C++ libraries implicitely.
If this is not the case post the exact command line(s) that you have invoked.
Art S. Kagel, kagel AT bloomberg DOT com
- Raw text -