Connecting Tech Pros Worldwide Help | Site Map

To run c program in linux

  #1  
Old December 2nd, 2006, 05:58 PM
Newbie
 
Join Date: Nov 2006
Posts: 16
Hai everybody. I am using turboC compiler in windows.My question is that can i use the same tc compiler in linux.

Moreover i don't install linux i am using the live linux CD.Is it possible to do this.The linux live CD what i am using is knoppix.please help.
  #2  
Old December 4th, 2006, 04:33 AM
Newbie
 
Join Date: Dec 2006
Posts: 10

re: To run c program in linux


Quote:
Originally Posted by udhayakarthick
Hai everybody. I am using turboC compiler in windows.My question is that can i use the same tc compiler in linux.

Moreover i don't install linux i am using the live linux CD.Is it possible to do this.The linux live CD what i am using is knoppix.please help.
U can complie ur C programs in Linux using a gcc complier.

type the command
"gcc <filename>"

this will generate a a.out file. u can run ur prog using "./a.out"
  #3  
Old December 4th, 2006, 09:20 PM
Expert
 
Join Date: Nov 2006
Location: UK
Posts: 1,327

re: To run c program in linux


Quote:
Originally Posted by udhayakarthick
Hai everybody. I am using turboC compiler in windows.My question is that can i use the same tc compiler in linux.

Moreover i don't install linux i am using the live linux CD.Is it possible to do this.The linux live CD what i am using is knoppix.please help.
so long as your C/C++ is does use any Turbo C specific header files etc it should compile with gcc or g++. Otherwise you can try running Turbo C using Wine
http://www.winehq.com/
  #4  
Old May 9th, 2007, 08:25 AM
Newbie
 
Join Date: May 2007
Posts: 1

re: To run c program in linux


hi everbody. i m sasmita. my problem is already i m using linux OS but when i m compiling any C program or C++ program that is not running and compiling also . i m using the command gcc/g++ for c/c++ command but it is showing that command is not found and i have loaded the linux Os i.e the Fedora core
  #5  
Old May 9th, 2007, 05:24 PM
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904

re: To run c program in linux


You probably do not have gcc installed in that case.

Quote:
Originally Posted by sasmitanayak
hi everbody. i m sasmita. my problem is already i m using linux OS but when i m compiling any C program or C++ program that is not running and compiling also . i m using the command gcc/g++ for c/c++ command but it is showing that command is not found and i have loaded the linux Os i.e the Fedora core
  #6  
Old May 9th, 2007, 05:26 PM
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904

re: To run c program in linux


You will need to use gcc as your compiler. You may need to do some tweaking to your compilation command line, but if you are using ISO compliant C, everything should work fine.

Just check to see that your LiveCD distro has gcc with it, otherwise you won't be able to do it.

Quote:
Originally Posted by udhayakarthick
Hai everybody. I am using turboC compiler in windows.My question is that can i use the same tc compiler in linux.

Moreover i don't install linux i am using the live linux CD.Is it possible to do this.The linux live CD what i am using is knoppix.please help.
  #7  
Old May 10th, 2007, 09:17 AM
Member
 
Join Date: Mar 2007
Posts: 63

re: To run c program in linux


can anyone let me know the link from where it install fedora core linux
  #8  
Old May 10th, 2007, 02:57 PM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,521

re: To run c program in linux


Google is your friend.
Fedora core 6
  #9  
Old May 10th, 2007, 03:00 PM
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904

re: To run c program in linux


Quote:
Originally Posted by askcq
can anyone let me know the link from where it install fedora core linux
Not exactly sure what you are asking, please elaborate.
  #10  
Old May 17th, 2007, 10:16 AM
Member
 
Join Date: Mar 2007
Posts: 63

re: To run c program in linux


i want to know the link to install fedora core linux
  #11  
Old May 17th, 2007, 04:05 PM
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,521

re: To run c program in linux


I posted it. See #8 above.
  #12  
Old May 17th, 2007, 05:11 PM
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904

re: To run c program in linux


Google is the place for questions like this.

The Fedora Project

Quote:
Originally Posted by askcq
i want to know the link to install fedora core linux
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zen and the Art of Debugging C/C++ in Linux with GDB jwwicks insights 2 July 1st, 2009 09:30 PM
Running Java Swing Program in Linux through Telnet bytespaulraj answers 3 November 10th, 2008 02:10 PM
library to launch program in linux idzwan.nizam@gmail.com answers 5 September 12th, 2007 03:35 PM
A question about C program in Linux and Windows Chang answers 5 November 15th, 2005 03:26 AM