Re: C compiler

  • From: "Littlefield, Tyler" <tyler@xxxxxxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Thu, 28 Apr 2011 06:14:04 -0600

If the OP is using edsharp, she's on Windows, not *nix, which kills the idea of using the which command.

On 4/28/2011 5:59 AM, DaShiell, Jude T. CIV NAVAIR 1490, 1, 26 wrote:
Within that process you might try:
Cmd which gcc<cr>
Cmd which gxx<cr>
You should get messages back of the form /usr/bin/gcc which means
they're in the path or gcc not found in /usr/bin /usr/local/bin ... and
that tells you first that the program isn't yet in the path and also
tells you what all of your path options are into which you may move or
copy gcc.



-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Ken Perry
Sent: Thursday, April 28, 2011 0:03
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: C compiler

I have not used ed sharp this way but what you can do is just edit a
file
called myProgram.c just by doing new file then once you have done that
run
cmd.exe  and open a command prompt.  Now I am not sure if mingw put the
compilers in the path or if you have to.  If this doesn't work then you
probably have to.  Use the command cd like this.

Cd c:\user\yourUser\

Then if you type

Gcc myProgram.c -o myProgram

It will create an executable for you if you have no errors.  Note this
is if
your program is in your user directory if you have it saved in a folder
which you should you will have to cd into there.

If it says it can't find the command gcc then you need to put the
mingw\bin
in your path.

Ken

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Lindsay
Yazzolino
Sent: Wednesday, April 27, 2011 1:49 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: C compiler

Hello everyone,

I am new to programming in C (and to programming in general0 and need
to find a C compiler that works with Windows. Right now I am
attempting to use MinGW with the EdSharp text editor, but when I
select the compiler through EdSharp and then try and save a file, it
gives the file a .cs rather than a .c extension. Is there something I
should be doing differently? I also hear that the Windows command line
utility works well, but have no idea how to use it, so perhaps someone
here would be willing to provide me with resources? Thanks.

Lindsay
__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind




--

Thanks,
Ty

__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: