www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/04/17:16:25

Message-Id: <35F058A7.3ABF@cableol.co.uk>
Date: Fri, 04 Sep 1998 22:16:23 +0100
From: Allens <allen DOT asjp AT cableol DOT co DOT uk>
Mime-Version: 1.0
To: @lux DOT iuakk DOT fi AT mars DOT cableol DOT net
Cc: djgpp AT delorie DOT com
Subject: Re: Hi
References: <199809041845 DOT OAA15564 AT delorie DOT com>

Sami Narhi wrote:
> 
> How do you compile .c to .exe ?
> When I for example try to compile this file (test.c) to test.exe :
>  #include <stdio.h>
 
          int main ()
          {
            printf ("%d \n" ,10);
            return 0;
          }
 
> like this : GCC TEST.C

Try gcc test.c -o test.exe

> 
> It says
> 
> gcc.exe: test.c: No such file or directory (ENOENT)
> gcc.exe: No input files
> 
> And if I include some switches it says: CAN'T FIND STUDIO.H or something.
> 
> Whats wrong ???
> 
> sami DOT narhi AT avenet DOT fi

Try reading the readme.1st, and using the corrected code above.
(You can't use comments in the middle of a command).
If you have any furture problems, try a)reading the faq
				      b)posting the whole of the test 
that gcc puts out.  Do this using the redir utility.

			Peter Allen

- Raw text -


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