delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/08/09/14:43:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Thu, 9 Aug 2001 11:37:53 -0700
From: tplesco <tod AT megachump DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Rebooting a windows 2000 box
Message-ID: <20010809113753.A784@megachump.com>
References: <50A89B19AEAAD411B9D200A0C9FB5699E88E2E AT craius DOT cportcorp DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <50A89B19AEAAD411B9D200A0C9FB5699E88E2E@craius.cportcorp.com>; from peter.buckley@cportcorp.com on Thu, Aug 09, 2001 at 02:04:48PM -0400
Organization: MC Studios

Doh! It's simple C. 

I used
gcc reboot.c -o reboot.exe
and it works great.

Thanks!

On Thu, Aug 09, 2001 at 02:04:48PM -0400, Peter Buckley wrote:
> I think that reboot.c is not a makefile. You have to use 
> a C-compiler, not "make" to build an executable. You can 
> write a makefile to call the compiler, but make -f is saying 
> that reboot.c is your makefile, and looking at Corinna's 
> code, that definitely is not a makefile. I think you can 
> use gcc to compile, but I am no c-programmer yet :-)
> 
> HTH,
> Peter
> 
> -----Original Message-----
> From: tplesco [mailto:tod AT megachump DOT com]
> Sent: Thursday, August 09, 2001 2:01 PM
> To: cygwin AT cygwin DOT com
> Subject: Re: Rebooting a windows 2000 box
> 
> 
> Hi, 
> 
> I put Corinna's reboot code into a file named reboot.c but I'm getting an
> error. Any help would be appreciated.  Here's a snapshot of my results:
> 
> $ make -f reboot.c reboot.exe
> reboot.c:11: *** commands commence before first target.  Stop.
> 
> -Todd
> 
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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