Message-ID: <3505CBC6.1BBC6286@oregoncoast.com> Date: Tue, 10 Mar 1998 15:24:54 -0800 From: Rudy Gingles Reply-To: spy AT oregoncoast DOT com Organization: Atek Systems MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: no .EXE or .O files after a make References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 43 NNTP-Posting-Host: news.oregoncoast.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Michael Samuel Tam wrote: > Hi, > Thank you for your reply. When I go to compile, I have a Makefile > that I have creatd. The contents are: > > ----- > > CFLAGS = -g > CC = gcc -c -Wall > > App: readFile.o > gcc -o App.exe readFile.o > > readFile.o: readFile.c > gcc -c -Wall -g readFile.c > > clean: > del core App a.out *.o > > ----- > > The readFile.c just reads and displays the contents of a file. It is a > simple program I wanted to test. I run this in a DOS prompt by going > 'make'. It goes through the compiling stages, but I cannot find the .EXE > or .O files that is supposed to be created. I do a 'Find; and > readFile.EXE or readFile.O doesn't show up anywhere. I haven't really worked with makefiles, but that could be it. Try compiling it manually from the commandline: gcc -g -Wall readfile.c -o readfile.o That should directly produce readfile.exe. If so, your makefile is at fault. Rudy -- Rudy Gingles spy AT oregoncoast DOT com http://www.oregoncoast.com/spy/