ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > SuSE

ÒâÍâµÄÊÕ»ñ

·¢²¼Ê±¼ä:2008-10-22 20:38:13À´Ô´:ºìÁª×÷Õß:smallboy1987042
½ñÌìÔÚÓÃSUSEʱ£¬½â¾öÁËÀ§ÈÅÎÒ¶àÌìµÄÎÊÌâ¡£±àÒëÆ÷µÄʹÓá£ÊÇͻȻ¼ä½â¾öµÄ£¬¸Ð¾õºÜÓгɾ͸У¬ÏÂÃæÎҾͰÑÎҵľ­ÑéºÍ´ó¼Ò·ÖÏíһϰɡ£
ÎÒǰЩÌìÒ»Ö±ÔÚÅäÖÃKdevelop£¬ÒòΪÌý˵ËüµÄ¹¦ÄܺÜÇ¿´ó£¬²¢ÇÒ¾ßÓзdz£ÈÝÒײÙ×÷£¬µ«ÊÇæÁ˼¸Ì춼ûÓÐŪºÃ¡£ÏÖÔÚÖØÐÂʹÓÃgcc¡£
ÔÚ°²×°ÅÌÉÏ´øÓÐGCCµÄ°²×°Îļþ£¬½«Æä°²×°£¬ÕâÑù±àÒëÆ÷¾Í×°ºÃÁË¡£ÕâЩ»¹ºÃ°ì£¬½ÓÏÂÀ´¾ÍÊDZàÒ룬µ÷ÊÔ²¿·Ö¡£
Ê×ÏÈ´ò¿ªVI£¬ÔÚÀïÃæÊäÈëC»òC++³ÌÐò£¬ÄÃHello world ΪÀý¡£
1.ÔÚ¿ØÖƶËÊäÈ룺vi hello.c
2.ÔÚviÖÐÊäÈë³ÌÐò´úÂ룺
#include
int main()
{
printf("Hello world!/n");
getchar();
return 0;
}
±£´æºóÍƳö¡£
3.ÔÚ¿ØÖƶËÊäÈëgcc -E hello.i -o hello.c
Æä×÷ÓÃÊDZàÒëÁ´½ÓÎļþ¡£
4.ÔÚ¿ØÖƶËÊäÈëgcc -o auc(±£´æºóµÄÎļþÃû) hello.c
5.Çл»µ½aucËùÔÚµÄĿ¼¡£ÊäÈë./auc£¬ÕâµãÊ®·ÖÖØÒª£¬Ðí¶àÐÂÊÖ£¨°üÀ¨ÎÒ£©¶¼²»ÖªµÀÔÚSUSEÖÐÈçºÎ´ò¿ª¿ÉÖ´ÐÐÎļþ¡£
6.¿ÉÒÔ¿´µ½ÔÚ¿ØÖƶËÊä³ö£º Hello world!
³É¹¦¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 4 ÌõÆÀÂÛ

  1. Ç廪ÊØÍû ÓÚ 2008-10-31 19:55:24·¢±í:

    ÆäʵÅäÖúÃϵͳµÄPATH,°Ñµ±Ç°Ä¿Â¼·Å½øÈ¥,¾Í²»»á³öÏÖ¿ÉÖ´ÐÐÎļþÔËÐв»Á˵ÄÎÊÌâÁË

  2. shuilinux ÓÚ 2008-10-24 14:34:14·¢±í:

    Ö»ÄÜ˵£¬º¹£¡

  3. smallboy1987042 ÓÚ 2008-10-22 21:26:44·¢±í:

    hehe

    [ ±¾Ìû×îºóÓÉ smallboy1987042 ÓÚ 2008-10-27 16:15 ±à¼­ ]

  4. joyrce ÓÚ 2008-10-22 20:43:36·¢±í:

    ºÇºÇ£¬ÏòÂ¥Ö÷ѧϰ£¬»¹Ã»¿´¶®ÄØ