Mail Archives: djgpp/2000/06/07/12:16:22
Tilman Sauerbeck <tilman DOT sauerbeck AT gmx DOT ch>:
> > > I tried to pipe them into a
> > > text file but that didn't work.
> >
> > This is because gcc sends error messages to the
> stderr
> > stream and not stdout. You must redirect messages to
> > stderr in order to pipe them to a file
> >
> > try using redir.exe, like this:
>
> Where can I get redir.exe?
It is in djdevNNN.zip package, so you should already
ave it installed, look in your djgpp/bin directory.
> > Post the exact list of error messages and machine.h.
>
> Machine.h is attached
OK. The problem is caused by the definition of types
u_int, u_long, ... in the last part of machine.h,
which are inside some #ifdef's, so they are compiled
only if some macros are defined.
If you compile using -ansi switch for gcc, then the
macro __ANSI__ is defined and you should be able to
compile the code. If you don't like using this switch
because it breaks some other parts of your prograsm,
you have to change the machine.h file and move the
typedef's outside the #ifdef's.
ciao
Giacomo
------------------------------------------------------
Giacomo Degli Esposti - pad2369 AT iperbole DOT bologna DOT it
- Raw text -