Mail Archives: djgpp/1994/02/08/10:07:58
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
- Raw text -