delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
From: | Alberto Luaces <aluaces AT udc DOT es> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Help with Make |
Date: | Fri, 1 Feb 2008 13:07:48 +0100 |
User-Agent: | KMail/1.9.7 |
References: | <loom DOT 20080201T113521-704 AT post DOT gmane DOT org> |
In-Reply-To: | <loom.20080201T113521-704@post.gmane.org> |
MIME-Version: | 1.0 |
Message-Id: | <200802011307.48192.aluaces@udc.es> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id m11C73FR024757 |
El Friday 01 February 2008 12:38:30 Richard Head escribió: > Hi, first post in here. > > Im not a very experienced C programmer, and Im fiddling with make. I > have the following make file (entitled Makefile): > > fusionTK.exe : main.o fusionFileIO.o fusionAlgorithms.o > gcc main.o fusionFileIO.o fusionAlgorithms.o -o fusionTK.exe > > main.o : main.c fusionDefs.h > gcc -c main.c fusionDefs.h > > fusionFileIO.o: fusionFileIO.c fusionDefs.h > gcc -c fusionFileIO.c fusionDefs.h > > fusionAlgorithms.o: fusionAlgorithms.c fusionDefs.h > gcc -c fusionAlgorithms.c fusionDefs.h > > Which as far as I can tell is all well and good, but when I execute > make, it comes back with the error: > "make: *** No rule to make target `main.c', needed by `main.o'. > Stop." > > have I put something in the wrong place? > > Im running this on WinXP pro with cygwin installed. > Also, if I remove the main.c and fusionDefs.h from the main.o > dependencies, it runs the command associated with main.o :"gcc - c > main.c fusionDefs.h" and then complains that the gcc command is not > found. I can quite happily run GCC directly from the command line. Are you running make from Cygwin's shell or from the Windows command line shell instead? -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |