delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/22/08:48:05

Date: Thu, 22 Apr 1999 15:46:08 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: CRETEL Dominique <dominique DOT cretel AT cfwb DOT be>
cc: djgpp AT delorie DOT com
Subject: Re: Help for Makefile
In-Reply-To: <371F038A.223E3C84@cfwb.be>
Message-ID: <Pine.SUN.3.91.990422154027.3195A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019