Date: Wed, 7 Jun 2000 10:22:00 +0200 (MET DST) From: pad2369 Message-Id: <200006070822.KAA01152@maggiore.iperbole.bologna.it> To: djgpp AT delorie DOT com, Tilman Sauerbeck References: <003d01bfcc7e$49b668e0$020aa8c0 AT cervantes> <200006021221 DOT OAA13904 AT maggiore DOT iperbole DOT bologna DOT it> <004a01bfcc94$a62c2400$020aa8c0 AT cervantes> <200006021408 DOT QAA28100 AT maggiore DOT iperbole DOT bologna DOT it> <005401bfcd44$91644100$020aa8c0 AT cervantes> In-Reply-To: <005401bfcd44$91644100$020aa8c0@cervantes> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP3 Imap webMail Program 2.0.11 Sender: pad2369 AT iperbole DOT bologna DOT it Subject: Re: cannot compile this code; although it should work Reply-To: djgpp AT delorie DOT com Tilman Sauerbeck : > > > 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