Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #2854

Re: Just starting out in C

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: Just starting out in C
Date 2011-04-24 22:08 -0700
Organization None to speak of
Message-ID <ln8vuy29zr.fsf@nuthaus.mib.org> (permalink)
References <1c7cbaf6-ca06-4cd0-a287-48b46e0f2540@r19g2000prm.googlegroups.com>

Show all headers | View raw


Robert Miles <robertmilesxyz@gmail.com> writes:
> I'm just starting out learning C, but using Windows Vista instead of a
> more C-oriented operating system.
>
> So far I've found this on-line tutorial, which looks like a good brief
> introduction:
>
> http://www.physics.drexel.edu/courses/Comp_Phys/General/C_basics/c_tutorial.html
>
> I've found that Vista does not include gcc, but Cygwin, which I've
> installed for other reasons, does.
>
> I've finished creating the source file, hello.c, with my favorite
> editor, which does not run under Cygwin.
>
> An attempt to compile it gave an error that gcc could not find the
> source file.
>
> What do I need to do to make gcc able to find that source file?

You need to tell gcc where to put it.

When you save hello.c from your editor, save it to the directory
where you're going to run gcc.  Either that, or give gcc the path
to the file (gcc -c /where/you/saved/hello.c).  (Translating between
Windows paths and Cygwin paths is beyond the scope of this newsgroup;
if you're using Cygwin, I presume you know about it.  If not,
there's documetation at cygwin.com.)

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Nokia
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Just starting out in C Robert Miles <robertmilesxyz@gmail.com> - 2011-04-24 17:00 -0700
  Re: Just starting out in C Geoff <geoff@invalid.invalid> - 2011-04-24 17:16 -0700
    Re: Just starting out in C Keith Thompson <kst-u@mib.org> - 2011-04-24 22:06 -0700
  Re: Just starting out in C Mickey Mouse <fake@email.com> - 2011-04-24 19:54 -0700
  Re: Just starting out in C Keith Thompson <kst-u@mib.org> - 2011-04-24 22:08 -0700
  Re: Just starting out in C Keith Thompson <kst-u@mib.org> - 2011-04-24 22:28 -0700
    Re: Just starting out in C BruceS <bruces42@hotmail.com> - 2011-04-25 06:34 -0700
    Re: Just starting out in C pete <pfiland@mindspring.com> - 2011-04-25 12:29 -0400
    Re: Just starting out in C Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-04-27 14:48 +0000
    Re: Just starting out in C John Bode <jfbode1029@gmail.com> - 2011-04-28 09:55 -0700
      Re: Just starting out in C Keith Thompson <kst-u@mib.org> - 2011-04-28 11:51 -0700

csiph-web