Mail Archives: djgpp/1998/06/16/21:26:35
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 -