µ±Ç°Î»ÖãºLinux½Ì³Ì - Linux - 2003-10-29 ÖÂBorland C++¿ª·¢ÕßÉçȺµÄ¹«¿ªÐÅ --J.P. LeBlanc

2003-10-29 ÖÂBorland C++¿ª·¢ÕßÉçȺµÄ¹«¿ªÐÅ --J.P. LeBlanc



         2003-10-29


    ÖÂBorland C++¿ª·¢ÕßÉçȺµÄ¹«¿ªÐÅ

    --J.P. LeBlanc

    ·­Ò룺Bear @ DelphiDevelopers.com



    ÕªÒª£º J.P. LeBlancÊÇBorland¸±×ܲüæC++ÓëÒƶ¯ÊÂÒµ²¿×ܾ­Àí¡£Ëû¸øBorland C++¿ª·¢ÕßÉçȺµÄ³ÉÔ±ÃÇдÁËÕâ·â¹«¿ªÐÅ£¬ÌÖÂÛÁ˹ØÓÚBorlandµÄ×îÐÂC++²úÆ·C++BuilderXµÄһЩϸ½ÚÓëÒÆÖ²ÊÂÏî



    C++BuilderX µÄ¹Ø¼üÌØÐÔ
    ×÷ΪÁ½Äê¶àÀ´Å¬Á¦µÄ½á¹û£¬Borland½»¸¶ÁËÒ»¸öȫеÄC++²úÆ·Ïߣ¬C++BuilderX¡£ÔÚ²úÆ·µÄÕâ´Î³õ´Î·¢²¼ÖУ¬BorlandµÄÄ¿±ê¿Í»§ÈºÑÓÉìµ½ÁËÕû¸öC++¿ª·¢ÕßÉçȺ¡£¸Ã²úƷƽµÈµØ¶Ô´ýƽ̨ÓëC/C++Ó¦Óÿª·¢Õß¡£

    ΪÁËÏìÓ¦µ±Ç°µÄÐÐÒµÇ÷ÊÆ£¬ÎªÁ˱£³ÖÎÒÃǵIJúÆ·¹ÛÄеIJúÆ·ÌØÐÔ¿ÉÒÔ×ܽáÈçÏ£º

    1£®¶àƽ̨¼¯³É¿ª·¢»·¾³
    ΪÁË´¥¼°Õû¸öC++Êг¡£¬ÎÒÃÇÒѽ¨ÔìÁËÕâÑùÒ»¸ö²úÆ·£¬ËüÄÜÔËÐÐÔÚ¶à¸öËÞÖ÷¿ª·¢Æ½Ì¨ÉÏ£¬°üÀ¨UNIX£¬LinuxÒÔ¼°Windows¹¤×÷Õ¾¡£ÎªÁË´ïµ½Õâ¸öÄ¿µÄ£¬ÎÒÃÇÔÚBorlandµÄPrimeTime IDE£¨PrimeTimeÊÇBorland»ùÓÚJavaµÄͳһIDEµÄ´úºÅ¡ªÒë×¢£©¿ò¼ÜµÄ»ù´¡ÉÏ´´½¨ÁËÒ»¸öȫеÄC++ IDE£¬Õâ¸ö¿ò¼ÜÒ²ÊÇJBuilder²úÆ·ÏߵĻù´¡¡£ÕâÖÖ·½Ê½½«Îª¿çÔ½¶à¸ö²»Í¬Æ½Ì¨µÄÌØÐÔÌṩͬÑùµÄÍâ¹ÛÓë¸ÐÊÜ£¬Í¬Ê±ÓÐÖúÓÚÎÒÃǵĿçƽ̨֧³ÖÒÔ¼õÉÙÒÆÖ²¿çƽ̨C++ÏîÄ¿µÄʱ¼ä¡£ÕâÑùÒ»¸öÎȶ¨IDEƽ̨£¬¾ßÓÐÁ¼ºÃ¶¨ÒåµÄÓë¾­¹ýÑéÖ¤µÄ½çÃ棬´Ó¶øÄܼ¯³É´óÁ¿µÄÕë¶ÔPrimeTime IDEµÄµÚÈý·½½â¾ö·½°¸£¬¿Í»§ÃÇÒ²Òò´Ë¶ø»ñÒæ¡£

    2£®¶à¸ö¹¤¾ßÁ´Ö§³Ö¸÷ÖÖ±àÒëÆ÷
    ΪÁ˱£Ö¤Õë¶ÔÕû¸öC++Êг¡µÄ½â¾ö·½°¸£¬Borland½«½»¸¶Ò»¸öÄÜÖ§³Ö¶à¸ö±àÒ빤¾ßÁ´µÄIDE¡£Í¨¹ýC++BuilderX£¬¿ª·¢ÕßÄܹ»¸Ä±äËüµÄ±àÒë»·¾³£¬°üÀ¨±àÒëÆ÷£¬µ÷ÊÔÆ÷£¬ÒÔ¼°Á¬½ÓÆ÷À´ÊʺÏÌرðµÄÏîÄ¿ÐèÒª¡£Õâ¸öÌØÐÔ¶ÔÓÚ¿çƽ̨µÄ¿ª·¢ÕßÓë´ÓÒ»¸öƽ̨ÒÆÖ²µ½ÁíÒ»¸öƽ̨µÄ¿ª·¢ÕßÀ´Ëµ£¬ÌرðÓÐÓá£Õâ¸ö²úÆ·ÔÚÏúÊÛʱ½«¸½´øÓÐÐí¶àÏȽøµÄ±àÒ빤¾ßÁ´£¬°üÀ¨Borland (bcc32 and bccx) £¬ Microsoft Visual C++ 7.1 (cl) £¬Intel X86 and IA64 for Windows£¬ÒÔ¼°Linux (icc) ºÍ MingW (gcc)¡£ÁíÍ⣬ÎÒÃǽ«Í¨¹ýÔ¤ÏÈÉèÖúõÄÅäÖÃÀ´ÌṩÕë¶ÔÐí¶àÆäËü±àÒ빤¾ßµÄÖ§³Ö£¬°üÀ¨Metrowerks CodeWarrior Óë Sun Forte C++¡£×îºó£¬C++ BuilderXÌṩÁËÒ»¸ö¼òµ¥µÄ¹¤¾ßÀ´ÇáËɼ¯³ÉÆäËüµÄ±àÒ빤¾ßÁ´¡£Ê¹Óøýâ¾ö·½°¸£¬Äã¾ÍÄÜÓÃ×îÐµĹ¤¾ßÀ´Î¬»¤ÄãµÄ´úÂ룬¶ø²»±Ø·ÇµÃÒª°ÑÄãµÄ´úÂëÒÆÖ²µ½²»Í¬µÄ±àÒëÆ÷ÉÏ¡£

    3£®¼¯³ÉµÄÓ¦ÓÃÉúÃüÖÜÆÚ¹ÜÀí£¨ALM£©¹¤¾ß
    ͨ¹ýÕûºÏÎÒÃÇÏȽøµÄÐèÇó¹ÜÀí¹¤¾ßCaliber£¬Ô´´úÂë¹ÜÀí¹¤¾ßStarTeam£¬ÒÔ¼°Ë«Ïò½¨Ä£¹¤¾ßTogether Edition for C++BuilderX£¬Borland½«Ö§³Ö¿ª·¢ÉúÃüÖÜÆÚµÄËùÓн׶Ρ£³ýÁËÖ§³ÖBorlandµÄ¹¤¾ßÍ⣬Primetime Open Tools API»¹ÄÜÇáËɵؼ¯³ÉÆäËüÖªÃû¹¤¾ß£¬ÕâÑù£¬ÎÒÃǾÍÈÿª·¢ÕßÓÐÁËÄÜ×ÔÓÉÑ¡Ôñ¸÷ÖÖ¹¤¾ßµÄ×ÔÓÉ¡£ Õâ°üÀ¨Intel VtuneÐÔÄÜ·ÖÎöÆ÷£¬ËüÓëC++ BuilderXÆóÒµ°æ¼°ÒÔÉÏ°æ±¾Ò»ÆðÏúÊÛ¡£ÔÚEnterprise Studio for C++Öн«¼¯ÖÐÌṩÕâЩÌØÐÔ£¬Enterprise Studio for C++ÊÇBorlandÌṩµÄµÚÒ»¸ö»ùÓÚALMÕ½Â﵀ C++Ì×¼þ¡£

    4. еģ¬´¿´âµÄC++ RAD¿ÉÊÓ»¯¿ª·¢»·¾³
    »ùÓÚÎÒÃǵijÐŵ--Èÿª·¢ÕßÄܸü¿ìµØ½¨Ô츴ÔÓÓ¦Óã¬C++BuilderXÌṩÁ˶ÔÓÚwx¿ò¼ÜµÄÖ§³Ö£¬wx¿ò¼ÜÊÇÒ»¸ö»ùÓÚ±ê×¼C++µÄÖ§³Ö¶àƽ̨µÄ¿ò¼Ü£¬Òѱ»¼¯³Éµ½ÎÒÃÇеĿÉÊÓ»¯¿ª·¢»·¾³ÖС£ÐµĿò¼ÜÓë¿ÉÊÓ»¯Éè¼ÆÆ÷½«Í¬Ê±Ö§³ÖÆóÒµ¿ª·¢ÓëÒƶ¯¿ª·¢¡£¿ò¼ÜÓëÉè¼Æ»·¾³¶¼½«Äܱ»À©Õ¹£¬ÒÔÔÊÐí¿ª·¢ÕßÒÔ¼°µÚÈý·½Ìí¼ÓËûÃÇÓмÛÖµµÄ¸½¼Ó×é¼þ¡£

    5£®Ö§³ÖÁìÏȵÄÒƶ¯Ó¦Óÿª·¢
    ΪÁËÈÿª·¢ÕßÄܹ»Õë¶Ôнü³öÏÖµÄÒƶ¯Æ½Ì¨¿ª·¢Ó¦Óã¬C++BuilderXÖ§³ÖSymbian²Ù×÷ϵͳÉϵÄÓ¦Óÿª·¢¡£ÌرðÖµµÃÒ»ÌáµÄÊÇ£¬C++BuilderX ¼¯³ÉÁËNokia 60ϵÁÐÓëÆäËûÁìÏȵÄÖն˹©Ó¦É̵Ä×îÐÂÈí¼þ¿ª·¢°ü¡£Õâ½öÊÇ×î³õµÄÖ§³Ö£¬½«À´»á±»À©Õ¹µ½Ò»ÏµÁеÄÒƶ¯É豸ƽ̨£¬°üÀ¨eLinux£¬Palm£¨×î½ü·¢²¼µÄ£©ÒÔ¼°»ùÓÚWinCEµÄƽ̨¡£Õë¶ÔC++BuilderXµÄÒƶ¯À©Õ¹½«ÔÊÐíÔÚ±¾µØÄ£ÄâÆ÷ÉϽøÐÐËÞÖ÷¿ª·¢Óë¼ìÑ飬»¹½«¾ßÓÐÔÚÄ¿±êÉ豸ÉÏ°²×°ÓëÔ¶³Ìµ÷ÊÔµÄÄÜÁ¦¡£


    ³¤ÆڵIJúÆ·ÏßÕ½ÂÔ
    Borland×¼±¸ÔÚеÄC++BuilderX IDEÉϼÌÐø½»¸¶ËùÓÐδÀ´µÄC++²úÆ·¡£ÒòΪC++BuilderXÊDZ»Éè¼ÆÀ´Ö§³Ö¶à¿ò¼ÜÓë¶à±àÒ빤¾ßÁ´µÄ£¬ÏÖÓеĿͻ§½«Óжà¸öÑ¡ÔñÀ´Íƶ¯ËûÃǵ±Ç°µÄÓ¦ÓüÌÐøÏòÇ°¡£BorlandΪÿһ¸öÑ¡ÔñÌṩһ¸öÍêÕûµÄRAD½â¾ö·½°¸¡£ÒÀ¾ÝÄãµÄƽ̨²ßÂÔ£¬ÄãÓ¦¸ÃΪÄ㵱ǰµÄͶ×ÊÑ¡ÔñÏÂÃæÁ½¸öÓÐÕë¶ÔÐԵij¤ÆÚÒÆÖ²²ßÂÔÖеÄÒ»¸ö£º

    1£®¿çƽ̨/Ô­ÉúC++Ó¦Ó᣶ÔÓÚÕâÖÖÀàÐ͵ÄÓ¦Óã¬ÎÒÃÇÇ¿ÁÒ½¨Ò鿪·¢ÕßÃǰѵ±Ç°µÄÓ¦ÓÃÒÆÖ²µ½wx¿ò¼Ü¡£ÔÚC++BuilderXÔ¤ÀÀ¼¼ÊõµÄ¿ªÊ¼½×¶Î£¬¾ÍΪ¿ª·¢ÕßÌṩÁËÒ»¸öÍêÈ«°æ±¾µÄwx¿ò¼Ü£¬ÒÔÈÿª·¢ÕßÄܹ»½¨Ôì¿çƽ̨µÄÓ¦Óá£ËäȻĿǰֻÓÐÓÐÏÞÊýÁ¿µÄ×é¼þ±»¼¯³Éµ½¿ÉÊÓ»¯´°ÌåÉè¼ÆÆ÷ÖУ¬µ«ÎÒÃǽ«ÔÚδÀ´µÄ·¢²¼°æ±¾ÖмÌÐøÀ©Õ¹¶ÔÓÚwxµÄÖ§³Ö¡£

    ÓÉÓÚBorlandÓÃVCLÖеÄÆóÒµÌØÐÔÀ´À©Õ¹wx¿ò¼Ü£¬¿ª·¢ÕßÃǽ«ÔÚ»ñµÃÕæÕý¿çƽ̨C++¿ò¼ÜµÄͬʱ£¬Ò²»á´ÓÕâÁ½¸ö¿ò¼Ü¼äÕýÔÚÔöÇ¿µÄAPI¼æÈÝÐԵõ½Òæ´¦¡£¶ÔÓÚÏÖÔÚʹÓÃCLX¿ò¼Ü½»¸¶¿çƽ̨C++Ó¦ÓõÄKylix C++¿ª·¢Õ߶øÑÔ£¬ÕâÖÖÌرðµÄÒÆÖ²²ßÂÔÊǵÄÍƼöµÄÐж¯·½°¸¡£


    2£®Windows C++Ó¦Óá£Èç¹ûÄãÖ»ÊÇΪ΢ÈíWindowsƽ̨½¨Ôì²¢²¿ÊðC++Ó¦ÓõĻ°£¬Borland½«½¨Òé²¢¹ÄÀø¿ª·¢ÕßÃÇÓñ»ÍйܵÄC++½¨Ôì»ùÓÚ.NET¿ò¼ÜµÄÓ¦Óá£Borlandͨ¹ýÌṩһ¸öÌرðµÄC++±àÒëÆ÷ÕýÔÚÖÂÁ¦ÓÚÖ§³ÖÕâÖÖ·½Ê½£¬ÕâÖÖ±àÒëÆ÷Õë¶Ô.NET¿ò¼ÜÉϵÄVCL£¬¾ßÓб»ÍйÜÀ©Õ¹Ó뼯³ÉÖ§³Ö¡£Õ⽫Ϊµ±Ç°µÄC++Builder6¿ª·¢ÕßÌṩһÌõ×îÖ±½ÓµÄ·¾¶£¬²»ÓÃÌ«·ÑÁ¦Æø¾ÍÄÜʹÓÃVCL°ÑËûÃǵÄÓ¦ÓÃÒÆÖ²µ½.NETƽ̨ÉÏÈ¥¡£


    Ðж¯ºÅÕÙ
    ÎÒÃÇÊÓÄãΪÎÒÃDZ¦¹óµÄC++¿Í»§£¬ÎÒÃÇÏ£ÍûÕâ¸öвúÆ·½«ÓëÄ㵱ǰµÄC++ÐèÇóÒ»Ö£¬²¢ÇÒÎÒÃǺܸßÐËÔÚ½«À´¼ÌÐø×÷ΪBorland C++¿ª·¢ÕßΪÄã·þÎñ¡£BorlandÖÂÁ¦ÓÚ¸øÓ迪·¢ÕßÑ¡ÔñµÄ×ÔÓÉ£¬Èÿª·¢ÕßÄܹ»¸ü¿ìµØ½¨Ôì¸üºÃµÄÈí¼þ¡£ÐµÄC++BuilderXÊÇ»ùÓÚÎÒÃǶÔÓÚC++¿ª·¢Õߵij¤ÆÚ³Ðŵ¶ø½»¸¶µÄ¡£

    ÎÒÃÇÒ²Àí½âÄãÃÇÔÚVCL¼¼ÊõÉÏͶ×ʵÄÖØÒªÐÔ£¬ÎÒÃǽ«ÔÚºóÃ漸ÖÜÀïµÄÏÂÒ»·â¹«¿ªÐÅÖÐÌṩ¹ØÓÚÔ­ÉúµÄVCLÖ§³ÖÒÔ¼°ÒÆÖ²µ½C++BuilderXµÄ¸ü¾ßÌåµÄϸ½Ú¡£ÔÚ¹«²¼ÁËÕâÁ½¸ö³¤ÆÚÕ½ÂÔÒÔºó£¬ÎÒÃÇ¿ÒÇëÄã¸æËßÎÒÃÇ£¬ÎÒÃÇÔõÑùÄÜ×î´óÏ޶ȵر£»¤ÄãÔÚÕâ¸öÁìÓòµÄͶ×Ê£¬ÎÒÃÇÈçºÎÄܼÌÐøΪÄãµÄÈí¼þ¿ª·¢ÐèÒª·þÎñÄØ£¿»¶Ó­ÄãµÄÆÀÂÛÓ뽨Òé¡£¶ÔÓÚÄ㵱ǰµÄÓ뽫À´µÄC++ÏîÄ¿£¬ÄãÓÐÄÄЩÌôÕ½ÓëÐèÇó£¬ÇëÖ±½Ó¸æËßÎÒÃÇ°É£¬Äã¿ÉÒÔʹÓÃQualityCentral»òÕß·¢Ë͵ç×ÓÓʼþ¸øÎÒÃÇ( [email protected]) £¬²»ÒªÓÌÔ¥¡£


    --------------------------------------------------------------------------------

    Òë×¢£º
    Ô­ÎÄOpen Letter to the Borland C++ Developer Community - by J.P. LeBlancÓÚ2003-10-29·¢±íÓÚBDN£¬·­Òë±ÏÓÚ2003-11-01¡£´ËÇ°µÄ°ËÔÂBorland»¹·¢±í¹ýÒ»·â¹«¿ªÐÅÒÔ²ûÃ÷Borland C++²úƷδÀ´µÄÕ½ÂÔ¡£





    www.delphidevelopers.com


    ·¢²¼ÈË:dogbear À´×Ô:DelphiDevelopers