Date: Tue, 8 Feb 94 07:04:55 MST From: ghgreene AT nyx10 DOT cs DOT du DOT edu (Greg Greene) To: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: simple make problem I'm having a problem with make.exe. I have I very simple makefile which works fine until I add a new file for compilation. Below is a copy of the makefile - as is, when I type 'make' I get the following: > make gcc -o learn main.o numbers.o verbs.o sentences.o -lpc c:/djgcc/bin/ld.exe: Can't open gcc However, if I remove the file 'sentences.o' from the makefile, it works fine. It appears to be related to the *length* of the ld command line. If I manually type in the command 'gcc -o learn...', it works fine also. Any ideas? CFLAGS = -O4 .cc.o: gcc $(CFLAGS) -c $< Objs = main.o numbers.o verbs.o sentences.o Libs = -lpc main : $(Objs) gcc -o learn $(Objs) $(Libs) Thanks, Greg Greene