Unix: Using the GNU C/C++ Compiler

Purdue Engineering Computer Network
If you want to use the GNU C (gcc) compiler to compile your code from the command line just type:
	gcc myprog.c	(every time you want to compile)
If you use Makefiles to compile your programs, then put the following line at the the top of your Makefile:
If you have problems with this compiler, send a "trouble" report with a description of the problem.

For information on gcc, see our stock answer on What C Compilers are available. You may also type the following from your prompt:

	% man gcc
Finally, if you are familiar with the info system in emacs, there is information on gcc available by entering info with the keystrokes:
	C-h i
After entering emacs. You will find information on how to run the GNU compiler.

Last modified: 2007/11/06 15:28:3.763000 US/Eastern by
Created: 2007/11/06 15:28:3.763000 US/Eastern by brian.r.brinegar.1.



Type in a few keywords describing what information you are looking for in the text box below.

Admin Options: Edit this Document