ºìÁªLinuxÃÅ»§
Linux°ïÖú

ÇóÖú£ºlinuxÏÂgccÁ¬½ÓÎÊÌâ

·¢²¼Ê±¼ä:2008-04-10 19:18:32À´Ô´:ºìÁª×÷Õß:xiyangmdzj
×î½ü¿ªÊ¼Ñ§Ï°ÔÚgccϱà³Ì¡£¾õµÃ×î´óµÄÎÊÌâÔÚÓÚ´ÓÒÔÇ°TC¹ý¶Éµ½gccµÄһЩÊÊÓ¦¡£
tcϱàÒëÁ¬½ÓÖ±½ÓÓà #include <*.h> ±àÒëÁ¬½Ó¶¼¿ÉÒÔÖ±½Ó¸ã¶¨ÁË£¬µ«ÊÇgccÏÂÔÚ gcc -o test tese.cµÄʱºòÈç¹ûÔÚÔ´´úÂëÀïÓÐ#includeÕâÑùµÄÉùÃ÷£¬Á¬½Óʱ¾Í±ØÐëÉùÃ÷Á¬½Ó±ê×¼¿â -lm¡£
ÎÒÏëÎʵÄÊÇ£ºÈç¹ûÎÒincludeµÄÊÇÆäËûµÄÍ·Îļþ£¬±ÈÈç http://www.linuxdiyf.com/bbs/thread-85835-1-1.html ÀïÌáµ½µÄʾÀý£¬ÔÚ±àÒëÁ¬½ÓµÄʱºò¸Ã -lÄĸö±ê×¼¿â£¿

ÓеÄ×ÊÁÏ˵д½Å±¾ÔÚËùÓбê×¼¿âÀïËÑË÷¡£µ«ÊÇÎÒ¾õµÃ¿ÉÐÐÐÔ²»¸ß¡£ÓÐûÓиüºÃµÄ·½·¨£¬»òÕßÓÐûÓÐÇ°ÈËÕûÀí³öÀ´µÄ¸÷¸öÍ·Îļþ¶ÔÓ¦µÄ±ê×¼¿âµÄ²éѯ±í£¿

СµÜÏÈÔÚÕâÀïлл¸÷λ´ó´óÁË¡­¡­
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 3 ÌõÆÀÂÛ

  1. gongji110 ÓÚ 2008-04-15 15:36:54·¢±í:

    Õâ¸öºÃÏñûÓÐÆäËûµÄ°ì·¨£¬ÎÒÔÚ¡¶linux²Ù×÷ϵͳÏÂCÓïÑÔ±à³ÌÈëÃÅ¡·Öп´£¬Ò²ÊDZ¿°ì·¨£¬Ïȵ½±ê×¼¿âÀïÈ¥ËÑ£¬ÔÙÈ¥Ìí¼Ó¡£ÓôÃÆ°¢¡£
    »òÕßʹÓÃÃüÁîËÑË÷£¬Âé·³µÄºÜ£¡
    ¿´À´Ö»ÄÜ×Ô¼º×ܽáÁË

  2. gongji110 ÓÚ 2008-04-15 15:35:31·¢±í:

    Õâ¸öºÃÏñûÓÐÆäËûµÄ°ì·¨£¬ÎÒÔÚ¡¶linux²Ù×÷ϵͳÏÂCÓïÑÔ±à³ÌÈëÃÅ¡·Öп´£¬Ò²ÊDZ¿°ì·¨£¬Ïȵ½±ê×¼¿âÀïÈ¥ËÑ£¬ÔÙÈ¥Ìí¼Ó¡£ÓôÃÆ°¢¡£
    »òÕßʹÓÃÃüÁîËÑË÷£¬Âé·³µÄºÜ£¡
    ¿´À´Ö»ÄÜ×Ô¼º×ܽáÁË

  3. xiyangmdzj ÓÚ 2008-04-13 22:10:52·¢±í:

    ûÓиßÊÖÀ´¿´Ã´£¿