Message-ID: <3302162F.1E8F@post.comstar.ru> Date: Wed, 12 Feb 1997 11:12:47 -0800 From: Dim Zegebart Reply-To: zager AT post DOT comstar DOT ru Organization: zager AT post DOT comstar DOT ru MIME-Version: 1.0 To: Eli Zaretskii CC: DJGPP Mail List Subject: Re: Allegro 2.2 make problem ;-) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Eli Zaretskii wrote: > > On Tue, 11 Feb 1997, Shawn Hargreaves wrote: > > > >src/asmdef.c : In function main > > >src/asmdef.c 41 : warning : implicit declaration of function offsetof > > >and too long list of : parse before [...] > > > > Huh? That doesn't make any sense at all! The offsetof() macro is defined > > in stddef.h, which is included by asmdef.c. Check that your asmdef.c has > > this include, and if so, look in the djgpp stddef header (it defines > > offsetof somewhere around line 12). I really can't understand why that > > could have gone wrong: ideas, anyone? > > First, the original poster should have posted the entire list of messages > he got from gcc instead of arbitrarily editing out some of them. One > possible reason to get the above is that stddef.h is corrupted; or maybe > sys/djtypes.h is corrupted or from an old DJGPP version. But I think > that looking at the full text of all the error messages will unlock the > problem much faster, so Dim, please post it. The size of stddef.h is 0 byte :( I think it's due to some of disk crashes happened last week ( I have reinstalled DJGPP) But this is not only problem I have. While making any project I frequently get the error msg such as pc.h : undefined '_' (firts use this function) or somthing about it. Then I open pc.h and go to the error line I see not __asm__ but _0x7fasm (I mean insted of second underscore I have character with ascii 0x7f). I manualy change this error and run make again. But after compiling some files the same errors occures again. Note !!! If I don't edit pc.h in this case just run make again the error may gone away or may not (ghosts) I mean pc.h remain unchanged !!! More other, I may run make 3 times with errors but then I run it again at 4 time all goes fine !!! But not only pc.h cause such a error ! This error may occure with any file contained __asm[...] string And the last error : asm error : can't hash (and so on) As a result of this to make Allegro2.2 I run make at least 25 times ;( (Note !!! I don't change any files exept pc.h, just type make again and again, until success end) To solve this problem I run format c:, create bootable floppy , re-install all DJGPP files and run make. I think the result is obvious :( -- Regards, Dim Zegebart, Moscow Russia.