X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Charles Sandmann Newsgroups: comp.os.msdos.djgpp Subject: Re: Alignment problem Date: Sun, 10 Feb 2002 01:11:36 CST Organization: Rice University, Houston TX Lines: 22 Message-ID: <3c661d28.sandmann@clio.rice.edu> References: <3C650C18 DOT B45F67D4 AT yahoo DOT com> <4331-Sat09Feb2002145741+0200-eliz AT is DOT elta DOT co DOT il> <3C655E12 DOT 6F8D351E AT yahoo DOT com> <200202091859 DOT g19Ixam19704 AT envy DOT delorie DOT com> <3C6586A1 DOT C3AE5AC3 AT yahoo DOT com> NNTP-Posting-Host: clio.rice.edu X-Trace: joe.rice.edu 1013325391 7643 128.42.105.3 (10 Feb 2002 07:16:31 GMT) X-Complaints-To: abuse AT rice DOT edu NNTP-Posting-Date: 10 Feb 2002 07:16:31 GMT X-NewsEditor: ED-1.5.9 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > > c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe c:/djgpp/tmp\cc8K2mXk.i -quiet -dumpba > > se malloc.c -ansi -gstabs+ -gp -W -Wall -pedantic -version -o c:/djgpp/tmp\ccNNo > > cc1.exe: warning: `-gp' not supported by this configuration of GCC .. should be -pg not -gp > > malloc.c:61: syntax error before `int' > > malloc.c:74: syntax error before `int' > > malloc.c:82: syntax error before `BLOCK' > > malloc.c: In function `malloc': > > malloc.c:195: warning: implicit declaration of function `sbrk' > > malloc.c: At top level: > > malloc.c:229: syntax error before `BLOCK' Errors on line 61, 74, 82, 229 are all due to the "inline" keyword - I suspect either -ansi or -pedantic is the problem here. You need to figure out how those became "default" and remove them to compile this module. This module also requires sbrk() which is not an ansi function.