作者mayasky ( )
看板LinuxDev
标题Re: [问题] glibc怎麽开始使用?
时间Fri Mar 5 16:39:02 2010
※ 引述《klain (klain)》之铭言:
: 我只装过一次Linux, 是Ubuntu,
: 完全不会Linux,
: 但是因为作业指定必须使用glibc来写, 所以我有以下问题:
: 1. 我在windows底下必须安装譬如visual c之类的
: compiler/IDE才能compile写出来的c code,
: 那请问所谓的glibc compiler是在我Linux装完之後就已经内建在系统里了吗?
glibc..yes
gcc..可能没有..你要去选
: 2. 如上题为否, 请问我要怎麽安装glibc呢? (有文件可以看吗)
: 如上题为是, 那是指我进入console模式,
: 随便在一个资料夹下面写c code都可以compile吗?
: 3. 我不太清楚要怎麽compile, 或者是说我不太清楚gcc跟glibc的差别,
: 不过就以流程上, 我就include glibc的function到我的c code,
: 然後在console模式下用gcc进行compile, 是这样吗?
gcc is a compiler
glib is a library
If you want to run the program on the host... Just "gcc file.c -o output_name"
: 谢谢回答.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.73.240.88
※ 编辑: mayasky 来自: 203.73.240.88 (03/05 16:40)
※ 编辑: mayasky 来自: 203.73.240.88 (03/05 17:12)