Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Sat, 25 Nov 2000 21:18:58 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: "hello world" does not compile Message-ID: <20001125211858.A29828@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20001126021117 DOT 669 DOT qmail AT web122 DOT yahoomail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <20001126021117.669.qmail@web122.yahoomail.com>; from skel777@yahoo.com on Sat, Nov 25, 2000 at 06:11:17PM -0800 On Sat, Nov 25, 2000 at 06:11:17PM -0800, Skelmax wrote: >Hello, > >I am new to gcc. I wrote my first program: > >/* File: hello_world.c */ > >#include > >main() >{ > printf("Hello world!\n"); >} > >This program is saved in a file: test.c, which is located in >C:\cygwin\bin directory. But whenever I am trying to compile it with >this line: >c:\cygwin\bin>gcc test.c -o test.exe >I am getting this error: > >GCC: installation problem, cannot exec `as': No such file or directory > >Moreover, I am getting the same error, if I will try to compile the >above program with this line too: c:\cygwin\bin>gcc test.c > >The error message does not give me any chance to figure out what is >wrong. Where this 'as' came from? It is nowhere in my program. >Please help me ;-) You've downloaded only bits and pieces of what you need. Since you are new to both gcc and to cygwin (it seems) you should REALLY download the entire package, not just the 'gcc' part. If you really really must download only what you need, the part that you are missing is 'binutils'. I suspect that you are probably also missing things like 'w32api' and 'mingw' as well. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com