Linux and C++

Discussion in 'C++' started by techme, Feb 25, 2010.

  1. techme

    techme New Member

    Joined:
    Feb 15, 2010
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    0
    Hi!
    I'm running on Fedora 7 not Windows!
    How to run C or C++ in linux?
    :(
     
  2. Melita

    Melita New Member

    Joined:
    Feb 24, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Student
    Location:
    Pretoria,South Africa
    Just to be clear of your question, by run c/c++ on linux, do u mean running a compiled c/C++ file or how to compile and execute the compiled file?

    please clarify your question so that its easier for one to help you.

    Also I don't understand how you being on fendora has anything to do with your question as its linux related.:confused:
     
  3. pankaj.sea

    pankaj.sea New Member

    Joined:
    Apr 6, 2009
    Messages:
    461
    Likes Received:
    13
    Trophy Points:
    0
    Occupation:
    Web Developer
    Location:
    Kolkata
    Home Page:
    http://ipankaj.net
    Hi techme!
    use this to run and write any C program in Fedora!
    Use any text editior and write your program without inlcude files and then save it with .C extension. Now go to terminal and the type this command
    Code:
    gcc fille_name.c -o <output_file_name.out>
    This will create the output file and to run the program use
    Code:
    ./<output_file_name.out>
    Remember, while using commands in terminal, use in correct directory.

    Thanks!
     
  4. techme

    techme New Member

    Joined:
    Feb 15, 2010
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    0
    Wow!
    Thanks Pankaj!
    Its working!
    :D
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice