在linux中运行c程序 [英] To run c program in linux

查看:91
本文介绍了在linux中运行c程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海大家。我在windows中使用turboC编译器。我的问题是我可以在linux中使用相同的tc编译器。


此外我不安装linux我正在使用live linux CD。是否可以这样做。我正在使用的linux live CD是knoppix.please help。

解决方案


海大家。我在windows中使用turboC编译器。我的问题是我可以在linux中使用相同的tc编译器。


此外我不安装linux我正在使用live linux CD。是否可以这样做。我正在使用的linux live CD是knoppix.please帮助。



你可以使用gcc编译器在Linux中编译你的C程序。


输入命令

" gcc< filename>"


这将生成一个a.out文件。你可以使用./ a.out



Hai every every run run ur prog。我在windows中使用turboC编译器。我的问题是我可以在linux中使用相同的tc编译器。


此外我不安装linux我正在使用live linux CD。是否可以这样做。我正在使用的linux live CD是knoppix.please帮助。



只要您的C / C ++确实使用任何Turbo C特定的头文件等,它应该用gcc或g ++编译。否则你可以尝试使用Wine运行Turbo C

http://www.winehq.com/


hi everbody。我是sasmita。我的问题是我已经在使用Linux操作系统,但是当我编译任何未运行和编译的C程序或C ++程序时。我使用命令gcc / g ++ for c / c ++命令,但它显示找不到命令,我已经加载了linux Os,即Fedora核心


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.

解决方案

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"


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/


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


这篇关于在linux中运行c程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆