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

g++ Á¬½Ó

·¢²¼Ê±¼ä:2010-09-06 20:45:30À´Ô´:ºìÁª×÷Õß:pdsxw123
ÏÖÔÚÅöµ½Ò»¸öÎÊÌ⣬ÔÚ¶¯Ì¬¿âÖÐÓÐÒ»¸öÀàµÄ¶¨Òå class M{}£»

ÔÚÎҵŤ³ÌÖÐÓÐÒ»¸öÏàͬµÄÀඨÒåM£¬²¢ÇÒMÖÐÓиöÏàͬµÄ·½·¨F¡£

¶¯Ì¬¿âÖÐÓиö´¦ÀíÁ÷³ÌÐèÒª¶¨ÒåÒ»¸öMµÄ¶ÔÏó£¬È»ºóµ÷Ó÷½·¨F£¬µ«ÊÇÔËÐнá¹ûÏÔʾµÄÊÇÎÒ¹¤³ÌÖÐÄǸöÀàÖз½·¨FµÄ½á¹û¡£

²»ÖªµÀË­Åöµ½¹ýÕâ¸öÎÊÌ⣬Ôõô½â¾öµÄ£¿ÊDz»ÊÇg++ÔÚÁ¬½ÓµÄʱºòÐèÒª¼ÓÉÏʲô²ÎÊý£¿
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 5 ÌõÆÀÂÛ

  1. sauntor ÓÚ 2010-09-06 22:53:46·¢±í:

    ÁíÍ⣬¶ÔÓÚC++³ÌÐò£¬Ò»°ã¶øÑÔÓ¦µ±Ê¹ÓÃÃüÃû¿Õ¼ä£¬ËùÒÔÔÚÏîÄ¿Éè¼ÆÖ®³õÓ¦µ±¿¼ÂÇʹÓÃC++ÃüÃû¿Õ¼äµÄÌØÐÔ¡£

  2. sauntor ÓÚ 2010-09-06 22:51:34·¢±í:

    g++ºÍgccÒ»Ñù¶¼ÓиöÑ¡Ïî¿ÉÒÔÈÃÄãÔÚ±àÒëʱÌø¹ýC/C++µÄ±ê×¼¿â£¬¶ÔÓÚC++Õâ¸öÑ¡ÏîÊÇ--nostdinc++£¬Í¨³£Õâ¸öÑ¡ÏîÖ»ÔÚ±àÒëGCC»òLinux Kernelʱ²Å»áÓõ½£¬Ïêϸ½âÊÍÇë²Î¿¼GCCÊֲᣬף¾ýºÃÔË (o):tx

  3. pdsxw123 ÓÚ 2010-09-06 21:07:37·¢±í:

    ¶¥Æ𣡣¡

  4. pdsxw123 ÓÚ 2010-09-06 20:58:59·¢±í:

    ±ÈÈç˵ÎҵŤ³ÌÐèҪʹÓÃA.so£¬B.soÁ½¸ö¶¯Ì¬¿â£¬¿ÉÊÇÓÉÓÚA£¬BÖж¼ÓÐclass MµÄ¶¨Ò壬²¢ÇÒÓÐÒ»¸öÖØÃûµÄ
    ·½·¨£¬AÖе÷Óô˷½·¨µÄ»°£¬¾ÍÊǸö²»È·¶¨µÄ½á¹û¡£

    Õâ¸öÎÊÌâÊÇÔÚ±àÒëµÄ¼ÓʲôѡÏî½â¾öÄØ£¬»¹ÊÇÖ±½ÓʹÓÃÃüÃû¿Õ¼ä½â¾ö£¿

  5. pdsxw123 ÓÚ 2010-09-06 20:58:22·¢±í:

    ÓÐË­Åöµ½Õâ¸öÎÊÌâÁË£¿ÊÇÔõô½â¾öµÄÄØ