c LINUX ÎÊÌâ
GCCÊÇÃâ·ÑµÄÂð£¿ÄÇÓУ¿
LINUXϵͳÔõôװ£¿
ÖÐÎÄÔõôÉèÖã¿
Äã×°ÍêLinuxϵͳ¾Í»á×Ô´øGCC£¬windowsÏÂÒ²ÓÐGCC£¬±ÈÈçdev-c++,CODE::Blocks
linuxϵͳ°²×°¸ù¾Ý²»Í¬µÄlinux°æ±¾ÍøÉ϶¼Óн̳̣¬¿´Ï¾ͺÃÁË£¬Ö÷ÒªÊÇÊÖ¶¯·ÖÇøÄÇŪһϾͿÉÒÔÁË
×°linuxʱºò£¬Ñ¡ÔñÖÐÎÄ£¬ÖÐÎľͻá×Ô¶¯ÉèÖúÃ
1.GCC×°ºÃLinux¾ÍÓУ¬µ±È»Ãâ·Ñ
2.¡¡¡¡°Ý´óÉñ£¬Õâ¸öÎÊÌâÈÃÈËÔõô»Ø´ð¡¡Ò»¾ä»°ÄÜ˵Çå³þµÄ»°£¬LinuxÔç¾Íһͳ½ºþÁË£¬ÄãÏÈϸöLinux·¢ÐаæÔÚÐéÄâ»úÁËÊÊÓ¦Ò»ÏÂ
End_rbody_60255511//-->
¸Ã»Ø¸´ÓÚ2009-10-10 15:20:29±»°æÖ÷ɾ³ý
¶ÔÎÒÓÐÓÃ[0]
¶ª¸ö°åש[0]
ÒýÓÃ
¾Ù±¨
¹ÜÀí
TOP
oyster2008
(oyster2008)
µÈ¡¡¼¶£º
#4Â¥ µÃ·Ö£º1»Ø¸´ÓÚ£º2009-10-06 23:33:24
GCC°²ÁËlinuxϵͳ¾ÍÓÐÁË£¬Ãâ·ÑµÄ
ÂòÒ»¸öÅÌ°²×°£¬´ÓÍøÉÏÏÂÔغó¿ÌÅÌ°²×°
Ö±½ÓÖ§³ÖÖÐÎÄ£¬»ù±¾²»ÐèÒªÉèÖÃ
http://gcc.gnu.org/gcc-4.4/
ÉÏÃæÊÇgcc×îаæÏÂÔØ¡¡
ubuntuµÄcd£¬Ãâ·Ñdown¡¡
http://www.ubuntu.org.cn/getubuntu/download/
¿´µ½3Â¥£¬¾Í¾õµÃ´ËÌûÓе¹·ÖÏÓÒÉ¡¡
Ç¿ÁÒÈÏͬ
ÊÕµ½£¬Ð»Ð»¾Ù±¨¡£
ÎÞÂÛÊÇ»òÕß·ñ£¬ÈÏΪÊǵ¹·Ö¡£
´ËÀàÎÊÌ⽨Òé·¢Íù·Ç¼¼ÊõÇø¡£
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
´ó¼ÒºÃ£º
ÎÒÏëʵÏÖ¼ì²âµ½²åÈëSD¿¨ºó×Ô¶¯½«SD¿¨¸ñʽ»¯µÄ¹¦ÄÜ£¬²»ÖªC/C++ÖÐÓÐûÓиñʽ»¯UÅ̵ĺ¯Êý£¿
ÁíÍ⣬ÎÒ²»ÏëʹÓÃSHFormatDrive£¬ÒòΪÕâ¸öº¯Êý»áµ¯³öÊÇ·ñÒª¸ñʽ»¯µÄÌáʾ¿ò£¬ÎÒÐèÒªµÄÊÇϵͳ×Ô¶¯¸ñʽ»¯£¬¶ø²Ù×÷Õß² ......
ÔÚ¸ùĿ¼/libÖдæ·ÅÒ»¸ölog.c£¬log.h£¬²¢ÓÃÏÂÃæµÄÓï¾ä£º
gcc -c log.c
ar crv liblog.a log.o
±àÒë³öÒ»¸öliblog.a¾²Ì¬¿â£¬È»ºóÔÚÎļþ¼Ð£º/testfileÖд´½¨Ò»¸ötest.cºÍtestc.c£¬test.cÖÐÒýÓÃÁËtestc.cÖж¨ÒåµÄ·½·¨ ......
СµÜ×î½üÔÚÁ˽â¹ØÓÚtiny c µÄÎÊÌâ¡£ÔÚlinuxÏÂ×¼±¸°²×°¡£µ«°²×°Íê³ÉºóÅöµ½ÁËһЩÎÊÌ⡣ϣÍû´ó¼ÒÄܹ»°ïæ½â¾ö¡£ÒÔÏÂÊÇ°²×°Íê³ÉºóµÄÖ´Ðв½Öè¡£
[student@localhost ~]$ tcc -v
tcc version 0.9.25
[student@localhos ......