Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 4 Jun 2004 11:58:59 -0400 (EDT)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: =?big5?q?c=20dana?= <dignitary_e@yahoo.com.tw>
cc: cygwin@cygwin.com
Subject: Re: file not recognized:File format not recognized
In-Reply-To: <20040604064321.66647.qmail@web16807.mail.tpe.yahoo.com>
Message-ID: <Pine.GSO.4.58.0406041155150.2262@slinky.cs.nyu.edu>
References: <20040604064321.66647.qmail@web16807.mail.tpe.yahoo.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Scanned-By: MIMEDefang 2.39

On Fri, 4 Jun 2004, c dana wrote:

> I am a novice at cygwin.
> I edited a file "test.c" with notepad in windows.
> Then I compiled it with gcc in cygwin by typing:
> $ gcc test.c
> However I got the following error message:
>
> test.c: file not recognized:File format not recognized
> collect2: ld return 1 exit status.
>
> My OS is WinXp. Could anyone tell me what's wrong?
> Dana

You'd have to provide more details on your problem to get any reasonable
amount of help...  Below is a good place to start:

> Problem reports:       http://cygwin.com/problems.html

It would have also helped if you actually attached the problem file.  One
WAG is that notepad tends to append a ".txt" suffix to the provided
filename, and if you had an older file called "test.c", you may not
actually be compiling the file you're expecting to compile.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/

