CFanatic

Go Back   CFanatic > Programming > C++ Programming

Join CFanatic Forum Now

Linux and C++ topic posted under C++ Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 02-24-2010, 09:20 PM
Member
 
Join Date: Feb 2010
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
techme is on a distinguished road
| More
Angry Linux and C++

Hi!
I'm running on Fedora 7 not Windows!
How to run C or C++ in linux?
Reply With Quote
  #2  
Old 02-25-2010, 03:37 AM
Junior Member
 
Join Date: Feb 2010
Location: Pretoria, South Africa
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Melita is on a distinguished road
| More
Re: Linux and C++

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.
Reply With Quote
  #3  
Old 02-28-2010, 08:45 PM
pankaj.sea's Avatar
Super Moderator
 
Join Date: Sep 2009
Location: Serampore
Posts: 132
Thanks: 0
Thanked 2 Times in 2 Posts
pankaj.sea is on a distinguished road
| More
Re: Linux and C++

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!
Reply With Quote
  #4  
Old 03-01-2010, 10:11 PM
Member
 
Join Date: Feb 2010
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
techme is on a distinguished road
| More
Talking Re: Linux and C++

Quote:
Originally Posted by pankaj.sea View Post
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!
Wow!
Thanks Pankaj!
Its working!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C/Linux/VxWorks Software Engineer - Toronto jsbelanger Looking to hire 1 10-26-2010 05:00 AM
[JOB] Linux Kernel Engineer, Mountain View, CA - Relo/H1B OK beaucmp Looking to hire 0 04-05-2009 11:17 PM
[JOB] C/C++/Linux Developers, NYC - Relo OK beaucmp Looking to hire 0 04-02-2009 06:16 PM
Compile C code in Linux Tlhokomelo C Programming 5 11-23-2007 10:50 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 01:35 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board