Thread: CC and GCC compiler problems

  1. #1
    Registered User
    Join Date
    Nov 2004
    Location
    bombay
    Posts
    6

    Question CC and GCC compiler problems

    I recently installed Red Hat Linux on my PC.But I cannot run CC or GCC on the machine.Somebody please help me!!!!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Did you tick "development tools" when asked about what to install?

    CAPS matter, the commands are
    gcc prog.c
    g++ prog.cpp

  3. #3
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    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

  4. #4
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    open a console and type
    Code:
    gcc
    if you dont see "gcc: no input files"

    then type (as root)
    Code:
    up2date gcc

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problems with makefile
    By bartleby84 in forum C Programming
    Replies: 4
    Last Post: 02-16-2009, 09:02 AM
  2. gcc -Wall -pedantic
    By flexo87 in forum C Programming
    Replies: 5
    Last Post: 01-26-2009, 02:04 PM
  3. GCC vs CC
    By dakarn in forum C Programming
    Replies: 4
    Last Post: 10-15-2008, 02:17 AM
  4. GCC and SSE multplication
    By Kernel Sanders in forum C Programming
    Replies: 5
    Last Post: 09-19-2008, 05:08 PM
  5. Problems about gcc installation
    By kevin_cat in forum Linux Programming
    Replies: 4
    Last Post: 08-09-2005, 09:05 AM