I recently installed Red Hat Linux on my PC.But I cannot run CC or GCC on the machine.Somebody please help me!!!!
I recently installed Red Hat Linux on my PC.But I cannot run CC or GCC on the machine.Somebody please help me!!!!
Did you tick "development tools" when asked about what to install?
CAPS matter, the commands are
gcc prog.c
g++ prog.cpp
also, remember to specify the correct flags
-o will produce an output program
-c will compile only
-ansi is ANSI compliant code
-Wall is putput all warnings
-pedantic will compile the code with strict c
but if you just want to compile and produce a runnable application and see any errors or warnings
then in the directpry in which the c file resides
gcc -o outputName inputfile.c
Monday - what a way to spend a seventh of your life
open a console and type
if you dont see "gcc: no input files"Code:gcc
then type (as root)
Code:up2date gcc