Mail Archives: djgpp/1999/04/22/05:19:30
On Thu, 22 Apr 1999, CRETEL Dominique wrote:
> You can find this package at http://www.imatix.com/html/sfl/index.htm.
> If you prefer, but I don't think that it's a good idea, I can send you
> by e-mail the zip file of SFL packages :-o It take about 409 Ko :-(
There's no need; read on.
> D:\Sfl>make
> gcc -c sflbits.o -s -O2 -Wall -pedantic sflbits.c
> gcc.exe: sflbits.o: No such file or directory (ENOENT)
> make.exe: *** [libsfl.a(sflbits.o)] Error 1
This is because you defined a wrong command in the rule:
%.o: %.c
$(CC) -c $@ $(CPPFLAGS) $(CFLAGS) $<
$@ is the target, so it needs to be after the -o switch:
$(CC) -c -o $@ $(CPPFLAGS) $(CFLAGS) $<
See how simple this is? Had you posted the error with the original
message, you could have the answer 4 days ago ;-).
- Raw text -