Linux gcc C Compiler

Linux gcc C Compiler - (which might help show where...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Linux gcc C Compiler For those wanting to use Linux on their home computers, look at the KNOPPIX website (http://www.knoppix.net/) for a free Linux system bootable from CD ROM. For those who do not own a computer or would just rather do their work using BYU facilities, there are Linux/Unix labs available in both the Computer Science and Engineering buildings with the gcc C compiler already installed. The EMACS, VIM, or KWRITE are acceptable text editors. You can compile your program using gcc. How to compile using gcc: In a Terminal window, type gcc -o *what you want to name your executable* *yourfile*.c For example: gcc -o hello_world hello_world_2.c How to run your program: In a Terminal window, type ./*what you named your executable*. For example: ./hello_world If you want to see all warnings when you are compiling your program
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (which might help show where possible errors are), then type in the following when using gcc: In a Terminal window, type gcc -o *what you want to name your executable* *yourfile*.c. For example: gcc -Wall -o hello_world hello_world_2.c Windows lcc C Compiler For Windows users, instructions for downloading and using the lcc C compiler plus a tutorial, can be found at LCC website (http://www.cs.virginia.edu/~lcc-win32/). And, it's free! (You can download a copy from our CS website here . Documentation can be found here as well. You can also join Microsoft's Academic Alliance to get a free copy of Visual Studio, which is more complicated but has a much better debugger than lcc. Other Items. .. Test Driver HowTo C Language References...
View Full Document

Page1 / 2

Linux gcc C Compiler - (which might help show where...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online