Date: Thu, 22 Apr 1999 15:46:08 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: CRETEL Dominique cc: djgpp AT delorie DOT com Subject: Re: Help for Makefile In-Reply-To: <371F038A.223E3C84@cfwb.be> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 22 Apr 1999, CRETEL Dominique wrote: > Ok, thanks for your help Eli, but the rule used is not this one! > You're right, I defined a wrong rule. > The wrong rule I used to make library was: They are both wrong. (And, btw, you didn't have to define those rules at all, since GNU Make already has these rules in its internal database.) > But, at the end, I get an error message: > > ------------------------------------ > gcc -c -s -O2 -Wall -pedantic sflxmll.c > sflxmll.c: In function `get_next_element_token': > sflxmll.c:424: warning: suggest explicit braces to avoid ambiguous `else' > ar cr libsfl.a sflxmll.o > del sflxmll.o > libsfl.a > make.exe: *** [libsfl.a] Error -1 The error happens because Make tries to execute the library. You need to find out why does it try to do that. I don't have your full Makefile anymore to look into it.