delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/09/17:10:12

Message-ID: <3554C597.81454264@hotmail.com>
Date: Sat, 09 May 1998 23:07:35 +0200
From: Archee/CoNTRACT <soltesz AT hotmail DOT com>
Reply-To: soltesz AT hotmail DOT com
Organization: School
MIME-Version: 1.0
To: rednax89 AT airmail DOT net
CC: djgpp AT delorie DOT com
Subject: Re: Bad makefile
References: <067E9C4CA4749CFA DOT B60201B6EDD03678 DOT 4E7699120187A3E9 AT library-proxy DOT airnews DOT net>

Alex Weekley wrote:
> 
> Can anyone please tell me what is wrong with this makefile? One minute
> it was working fine and now I always get missing separator. I've even
> tried writing a new one but the same thing always happens. Arrgh! I hate
> make!
> 
> --
> Alex Weekley
> mailto:rednax89 AT airmail DOT net
> 
>                                                   ------------------------------------------------------------------------
> CC=gcc
> CFLAGS=-s -O2 -Wall -x c
> FOOL_LIB=libkb.a libsb.a
> FOOL_OBJ=\
>     foolmain.o\
>     al_video.o\
>     bitmap.o  \
>     font.o    \
>     graph.o   \
>     blaster.o \
>     globals.o \
>     engine.o  \
>     game_art.o\
>     game_aud.o\
>     debug.o
> 
> fool.exe:

You must have 0x09 character at the beggining of the next line.

>     $(FOOL_OBJ)
>     $(CC) -o fool.exe $(FOOL_OBJ) $(FOOL_LIB)
> 
> %.o:

here too:
>     $(CFLAGS) %.c


The problame is:
 DJGPP has a sukka maker. The separator is the 0x09 character, the TAB
character.
 Most of the text editors CHANGES the tab characters to spaces.
 You should USE windoze notepad.

Or use hex editor.
Or make a program to replace the + characters to 0x09. 

The tab character (or + if you made a program for that) means, what
command line shall we have.

The more inportant problame is:
 You have forgotten to use the -s param.

Good luck.

- Raw text -


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