Date: Mon, 26 Dec 1994 01:16:12 -0500 (EST) From: Kimberley Burchett Subject: 4dos batch files To: DJGPP Mailing List I'm not sure if it's a 4dos thing or what. It's certainly new. Anyway, the problem is I'm having trouble compiling from batch files. ------------------- cc.bat ---------------- gcc -g -O2 %2 %3 %4 %5 %1.cc libmost.a -lm -lpc -liostr cp a.out %1 strip -s %1 coff2exe %1 del %1 ------------------------------------------- The above batch file doesn't work. After the gcc line, no a.out is produced. Unless, that is, the batch file is in the current directory. I don't know why - it was working a few days ago, but for the last few days I haven't been able to compile and I just recently figured out why. GCC doesn't produce any errors, it just quits peacefully and returns me to my command line a.outless. Does anybody know why this is? I can't think of anything I changed recently on my system that would cause this... BTW: make seems broken, too. When I run it, no matter what I've specified "CC=" to be, and no matter what "CFLAGS=" is, it runs plain gcc with no flags. So I can't get optimization or debugging info from make. Funny thing is, it works fine with other programs' makefiles. Here's mine: ---------------- makefile --------------- CC= gcc CFLAGS= -O2 -g LDLIBS= -lm -lpc LIBOBJECTS= mouse.o video.o automous.o usefuls.o timer.o window.o \ widget.o libpaint.a: $(LIBOBJECTS) ar ru libpaint.a $(LIBOBJECTS) widget.o : widget.cc widget.h window.o window.o : window.cc window.h automous.o video.o usefuls.o error.o automous.o : automous.cc automous.h mouse.o error.o video.o : video.cc video.h timer.o usefuls.o error.o usefuls.o : usefuls.cc usefuls.h mouse.o : mouse.cc mouse.h timer.o : timer.cc timer.h error.o : error.cc error.h ----------------------------------------- I admit I've never actually learned how to use make, I just adapted this from another one I found. Kim