delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/06/18/12:25:28

From: cgf AT bbc DOT com (Chris Faylor)
Subject: Re: Newbie question / Help with make
18 Jun 1997 12:25:28 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <EBzCv8.4H3.cygnus.gnu-win32@bbc.com>
References: <33A73F35 DOT 55B AT sprintmail DOT com>
Reply-To: cgf AT bbc DOT com
X-Newsreader: trn 4.0-test57 (27 Apr 97)
Original-To: gnu-win32 AT cygnus DOT com
X-Mailer: Perl5 Mail::Internet v1.28
Original-Sender: owner-gnu-win32 AT cygnus DOT com

In article <33A73F35 DOT 55B AT sprintmail DOT com>, RC  <telegraph AT sprintmail DOT com> wrote:
>Pardon the newbie question.
>
>I've just downloaded gnu-win32 b18 and am trying to run it on a win95
>system.  I've managed to compile a hello.c program, but when I 
>try another program I get the following message:
>
>gcc Makefile.c -o Makefile
>Makefile.c:2: 'gcc' undeclared here (not in a function)
>Makefile.c:2: syntax error before 'PROF'
>gcc: Internal compiler error: program cc1 got fatal signal 33
>MAKE.EXE *** [Makefile] Error 1
>
>What might I have done wrong here?  Any suggestions or pointers in the
>right direction would be greatly appreciated.  Thanks.

It is difficult to say what you might have done wrong since you didn't
post the relevant parts of the Makefile, but, at a guess, it looks like
you are not indenting the lines (i.e., gcc) which are intended to be
commands.  A rule should look something like this:

foo.o:	foo.c
	gcc -c $?
^
Tab here.
-- 
http://www.bbc.com/	cgf AT bbc DOT com			"Strange how unreal
VMS=>UNIX Solutions	Boston Business Computing	 the real can be."
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019