www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/16/21:26:35

From: rjvdboon AT cs DOT vu DOT nl (Boon van der RJ)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: MAKE error
Date: 16 Jun 1998 11:04:37 GMT
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 29
Message-ID: <6m5jg5$a2j$1@star.cs.vu.nl>
References: <3583DC1A DOT 70BB AT biosys DOT net>
NNTP-Posting-Host: sloep41.cs.vu.nl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

adamwu (geewu AT biosys DOT net) wrote:
> CC = g++
> CFLAGS = -Wall
           ^^^^^^
> OBJECTS = main.o rules.o defeat.o closure.o
> 
> temp.exe : $(OBJECTS)
> 	$(CC) $(CFLAGS) $(OBJECTS) -o temp.exe
> 
> %.o : %.cc
> 	$(CC) $(CFLAGS) -c $<
> 
> and when i run make, it gives me this error:
> g++ - Wall -c rules.cc
      ^^^^^^
which one is the typo??
` - ' on the command-line usually means: 'get input from stdin' and
you will get errors and won't get rules.o.
1) Some other things. Avoid ` : ' while it gave errors in a old version
   of make.
2) Try to add the dependency rule (altough I don't think it should
   make a difference):
rules.o: rules.cc

hth (a bit),
 Robert.
-- 
rjvdboon AT cs DOT vu DOT nl        | "En dat is niet waar!" sprak (ex?) Staatsecre-
www.cs.vu.nl/~rjvdboon   |    taris Netelenbos (onderwijs) fel.

- Raw text -


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