www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/17/01:28:30

Date: Mon, 17 Jun 1996 08:14:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Rich Dawe <rd5718 AT irix DOT bris DOT ac DOT uk>
Cc: djgpp AT delorie DOT com
Subject: Re: Problems with a simple makefile
In-Reply-To: <Dt3Ar2.2LI@uns.bris.ac.uk>
Message-Id: <Pine.SUN.3.91.960617080819.13778D-100000@is>
Mime-Version: 1.0

On Sun, 16 Jun 1996, Rich Dawe wrote:

> This produces the error message 'makefile:8: *** missing separator. Stop',
> where line 8 is the line following 'starship : ...'.

>   starship : starship.o
>              gcc -lalleg starship.o -o starship $(FLAGS)
    ^^^^^^^^^^^
Make sure the white space underlined above begins with a TAB, not a 
SPACE.  GNU Make insists upon it.  This is explained in the Make Info 
reference, in the section named "Rule Introduction".

And btw, your rule has another error: you should put `-lalleg' LAST on 
your command line.  DJGPP uses a one-pass linker, and the order of the 
object files and libraries is significant.  This is explained in the 
DJGPP FAQ list (v2/faq200b.zip from the same place you get DJGPP).

- Raw text -


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