Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

To run c program in linux

Question posted by: udhayakarthick (Newbie) on December 2nd, 2006 04:58 PM
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.
FuerzaDelDios's Avatar
FuerzaDelDios
Newbie
10 Posts
December 4th, 2006
03:33 AM
#2

Re: To run c program in linux
Quote:
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"

Reply
horace1's Avatar
horace1
Expert
1,313 Posts
December 4th, 2006
08:20 PM
#3

Re: To run c program in linux
Quote:
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/

Reply
sasmitanayak's Avatar
sasmitanayak
Newbie
1 Posts
May 9th, 2007
07:25 AM
#4

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

Reply
Motoma's Avatar
Motoma
Site Moderator
2,896 Posts
May 9th, 2007
04:24 PM
#5

Re: To run c program in linux
You probably do not have gcc installed in that case.

Quote:
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

Reply
Motoma's Avatar
Motoma
Site Moderator
2,896 Posts
May 9th, 2007
04:26 PM
#6

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:
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.

Reply
askcq's Avatar
askcq
Member
63 Posts
May 10th, 2007
08:17 AM
#7

Re: To run c program in linux
can anyone let me know the link from where it install fedora core linux

Reply
drhowarddrfine's Avatar
drhowarddrfine
Expert
4,409 Posts
May 10th, 2007
01:57 PM
#8

Re: To run c program in linux
Google is your friend.
Fedora core 6

Reply
Motoma's Avatar
Motoma
Site Moderator
2,896 Posts
May 10th, 2007
02:00 PM
#9

Re: To run c program in linux
Quote:
can anyone let me know the link from where it install fedora core linux


Not exactly sure what you are asking, please elaborate.

Reply
askcq's Avatar
askcq
Member
63 Posts
May 17th, 2007
09:16 AM
#10

Re: To run c program in linux
i want to know the link to install fedora core linux

Reply
drhowarddrfine's Avatar
drhowarddrfine
Expert
4,409 Posts
May 17th, 2007
03:05 PM
#11

Re: To run c program in linux
I posted it. See #8 above.

Reply
Motoma's Avatar
Motoma
Site Moderator
2,896 Posts
May 17th, 2007
04:11 PM
#12

Re: To run c program in linux
Google is the place for questions like this.

The Fedora Project

Quote:
i want to know the link to install fedora core linux

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,285 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top Linux / Unix / BSD Forum Contributors