473,854 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

To run c program in linux

16 New Member
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.
Dec 2 '06 #1
11 17231
FuerzaDelDios
10 New Member
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"
Dec 4 '06 #2
horace1
1,510 Recognized Expert Top Contributor
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/
Dec 4 '06 #3
sasmitanayak
1 New Member
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
May 9 '07 #4
Motoma
3,237 Recognized Expert Specialist
You probably do not have gcc installed in that case.

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
May 9 '07 #5
Motoma
3,237 Recognized Expert Specialist
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.

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.
May 9 '07 #6
askcq
63 New Member
can anyone let me know the link from where it install fedora core linux
May 10 '07 #7
drhowarddrfine
7,435 Recognized Expert Expert
Google is your friend.
Fedora core 6
May 10 '07 #8
Motoma
3,237 Recognized Expert Specialist
can anyone let me know the link from where it install fedora core linux
Not exactly sure what you are asking, please elaborate.
May 10 '07 #9
askcq
63 New Member
i want to know the link to install fedora core linux
May 17 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4315
by: Adi | last post by:
A java program we have written crashes with IBM JDK 1.3.1 on linux. It works fine on other platforms(Solaris,HPUx). It gets a SIGSERV Signal 11 and crashes just after few minutes after starting up. THe program creates a good number of threads. Any suggestions most welcome. Have tried following setting LD_ASSUME_KERNEL=2.2.5 disabling JIT by passing -Djava.compiler=NONE
5
2424
by: Jeffrey Barish | last post by:
I have been developing a Python program with two intercommunicating (using sockets) parts, one of which runs on a desktop and the other on a PDA.  For ease of development, I developed them both on a desktop.  Now that I have them working on the desktop, I need to move the part destined for a PDA to a PDA.  I had originally planned to use a Sharp Zaurus because it runs Linux (the OS of my desktop system) and I had found a Python port that...
3
2444
by: Pat Deegan | last post by:
Greetings, I've been having issues while debugging programs. The problems only appear when using the '-d' switch and I get the impression it has to do with UTF8 and regex matching but I don't know how to deal with it. One particular example is a program which uses the DBI to connect to a database, which will run fine normally but will hang during the call to DBI->connect() when running under the debugger.
0
1743
by: szehau | last post by:
Hi all, I have a program written in C with embeded SQL. Following are the configuration: DB2/LINUX 8.1.5 Thread model: posix gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7) My problems are as following
34
29928
by: Tom | last post by:
I'd greatly appreciate advice and code snippets on how to create a ram disk within a C/C++ program. I also need to be able to determine the free space. Thanks in advance for any help.
1
4761
by: LKavitha4 | last post by:
hi, Does writing c++ program in windows turbo c is similar to red hat linux. My c++ program is runnning correct in turbo c but the same program is not working in red hat linux. Also say how to compile and run turboc c++ program in linux.
20
2634
by: Francine.Neary | last post by:
I am learning C, having fun with strings & pointers at the moment! The following program is my solution to an exercise to take an input, strip the first word, and output the rest. It works fine when you give it 2 or more words, but when there's only 1 word the results vary depending on whether it's on Windows or Linux: under MSVC it displays no output (as it should); under gcc/Linux it instead gives "Segmentation fault". Any ideas...
41
2724
by: c | last post by:
Hi every one, Me and my Cousin were talking about C and C#, I love C and he loves C#..and were talking C is ...blah blah...C# is Blah Blah ...etc and then we decided to write a program that will calculate the factorial of 10, 10 millions time and print the reusult in a file with the name log.txt.. I wrote something like this
1
12256
by: AngreGanon | last post by:
Hi all~ I've written a network program in C. This program catputures ARP request packet and reply wrong ARP packet. Hi. I've written a small program to learn to write in C. But unfortunately the output is all jumbled up and not nice Caputuring is ok, but couldn't send ARP packet. What's wrong? ( using 2PC, this program run in Linux and moitoring other PC,Window XP)
8
2138
by: Horacius ReX | last post by:
Hi, I am developing some code in C which first I compile on my linux machine and afterwards I test on another special hardware which has almost no debug capabilities at all. Usually I get a lot of errors in the latter, because I have memory size limitations. So, I wonder what are the best practices to know for a given program, once it is compiled and before its execution:
0
9752
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11031
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10684
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9517
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7918
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7082
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5744
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5942
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4563
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.