Å©¸²½¼¿¡µðÅÍ ÀÚÀ¯ °Ô½ÃÆÇ

- Å©¸²½¼¿¡µðÅÍ ÇÑ±Û °Ô½ÃÆÇÀÔ´Ï´Ù. ¿¡µðÅÍ¿Í °ü·ÃÇÑ ¹ö±×, Á¦¾È ¶Ç´Â ÀÇ°ßÀ» Àû¾îÁÖ¼¼¿ä.

2003/08/12 (15:55) Article Number : 1288
Delete Modify Àåâ¼ö (gameacekr@hotmail.com) Access : 6090 , Lines : 105
Re: Å©¸²½¼ ¿¡µðÅÍ C/C++ ¼³Á¤
ÀÌÃ漺 wrote:
>¾È³çÇϽʴϱî.
>Å©¸²½¼ ¿¡µðÅÍ ´öºÐ¿¡ ÇÁ·Î±×·¥À» ½±°Ô¾µ¼ö ÀÖ¾î
>Ç×»ó °¨»çÇÏ°Ô »ý°¢ÇÏ°í ÀÖ½À´Ï´Ù.
>½ÇÀº ¹Ù»ÛÁß¿¡ Á˼ÛÇÏ¿À³ª Áú¹®ÀÌ ÀÖÀ¾´Ï´Ù¸¸.
>
>How to install C/C++ compiler ÀÇ Ç׸ñÁß
>
>3. Add 'C:\Borland\BCC55\bin' to the existing path.
>4. Set compiler options and linker options.
>    From the bin directory of your installation, create a 'bcc32.cfg' file which will set
>    the compiler options for the Include and Lib paths (-I and -L switches to compiler)
>    by adding these lines:
>       -I"C:\Borland\BCC55\include"
>       -L"C:\Borland\BCC55\lib"
>    create an 'ilink32.cfg' file which will set the linker option for the Lib path by adding
>    this line:
>       -L"c:\Borland\BCC55\lib"
>
>3¹øÇÏ°í 4¹øÇ׸ñÀ» ÀÌÇØ ÇÒ¼ö ¾ø½À´Ï´Ù.
>3¹ø Ç׸ñÀÇ existing path¶õ ȯ°æº¯¼ö¸¦ ¼³Á¤ÇÔÀ» ¸»ÇÏ´Â Áö¿ä?
>
>
>4¹øÇ׸ñÀÔ´Ï´Ù¸¸, bcc32.cfg¿Í ilink32.cfgÈ­ÀÏÀ» C:\Borland\BCC55\binÀÇ ¹Ø¿¡´Ù
>³Ö¾î ³õ´Â °ÍÀ» ¸»Çϴ°ÇÁö¿ä?
>Áï
>bcc32.cfgÀÇ ³»¿ëÀº
> -I"C:\Borland\BCC55\include"
>-L"C:\Borland\BCC55\lib" ÀÌ°ÍÀ̸ç
>ilink32.cfgÀÇ ³»¿ëÀº
>-I"C:\Borland\BCC55\include"
>-L"C:\Borland\BCC55\lib"
>-L"c:\Borland\BCC55\lib" ¸¦ ¸»Çϴ°ÍÀΰ¡¿ä?
>
>
>---------- Capture Output ----------
>"C:\Program Files\Boland\Bin\bcc32.exe" hello.c
>Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
>hello.c:
>Warning W8065 hello.c 3: Call to function 'printf' with no prototype in function main
>Warning W8070 hello.c 4: Function should return a value in function main
>Error E2133: Unable to execute command 'ilink32.exe'
>Terminated with exit code 1
>
>±×·±µ¥ Àú´Â À§¿Í °°Àº ¹æ¹ýÀ¸·Î Çؼ­ ÄÄÆÄÀÏÀ» Çߴµ¥ À§¿Í°°ÀÌ Å©¸²½¼ÀÇ ¿¡µðÅÍ¿¡¼­
>¿¡·¯ ¶óÀÎÀÌ ³ª¿Í¼­ ¸»ÀÌÁÒ.. ÀÌÇØ°¡ Àß ¾Ê°¡¼­¿ä.
>Àú´Â C:\Program Files\Boland\À¸·Î Å©¸²½¼¿¡µðÅÍÀÇ »çÀÌÆ®¿¡¼­ ÃßõÇÑ º¼·£µå
>¾¾¸¦ ¹Þ¾Æ¼­ ¼³Ä¡Çß½À´Ï´Ù.
>Áú¹® ´äº¯ ºÎŹµå¸³´Ï´Ù.
>°¨»çÇÕ´Ï´Ù.

Á¦°¡ ¿µ¾î´Â Àß ¸øÇÏÁö¸¸,

Á¦°¡ ¾Æ´Â Çѵµ³»¿¡¼­ ¹ø¿ªÀ» ÇØ º¸°Ú½À´Ï´Ù.

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

If you want to learn how to write C/C++ program,
you may want to install a C/C++ compiler first of all.
¸¸¾à »ç¿ëÀÚ°¡ C/C++ ÇÁ·Î±×·¥À» ¹è¿ì±æ ¿øÇÑ´Ù¸é,
»ç¿ëÀÚ´Â Á¦ÀÏ ¸ÕÀú C/C++ ÄÄÆÄÀÏ·¯¸¦ ÀνºÅçÇÏ´Â °ÍÀÌ ÇÊ¿äÇÏ´Ù.

Here is a guideline you can follow to install a compiler.
¿©±â¿¡¼­ Á¦½ÃÇÏ´Â ¹æ¹ýÀ¸·Î »ç¿ëÀÚ´Â ÄÄÆÄÀÏ·¯ ¼³Ä¡¹æ¹ýÀ» µû¸£¸é µÈ´Ù.

In this example, we assume that you install Borland C++ compiler
which is free to use.
¿¹Á¦¿¡¼­, ¿ì¸®´Â ÀÚÀ¯·Ó°Ô »ç¿ëÇÒ ¼ö ÀÖ´Â º¼·£µå C++ ÄÄÆÄÀÏ·¯¸¦
ÀνºÅçÇÏ´Â °ÍÀ¸·Î °¡Á¤À» ÇÏÀÚ.

Of course, there are more compilers available (Cygnus, DJGPP for example).
It is up to you which compiler to use.
¹°·Ð ´Ù¸¥ ÄÄÆÄÀÏ·¯µµ °¡´ÉÇÏ´Ù(¿¹¸¦ µé¸é Cygnus, DJGPP)
ÀÌ°ÍÀº °¢ ÄÄÆÄÀÏ·¯¿¡ µû¶ó ´Ù¸£´Ù.

1. Download 'FreeCommandLineTools.exe' from Borland software corporation
  homepage. (http://www.borland.com)
  º¼·£µå ¼ÒÇÁÆ®¿þ¾î ȸ»ç¿¡¼­ 'FreeCommandLineTools.exe'¸¦ ´Ù¿î·ÎµåÇÑ´Ù.
  È¨ÆäÀÌÁö. (http://www.borland.com)
   
2. Install 'FreeCommandLineTools.exe' into 'C:\Borland\BCC55' directory.
  'FreeCommandLineTools.exe'¸¦ 'C:\Borland\BCC55' µð·ºÅ丮¿¡ ÀνºÅçÇÑ´Ù.

3. Add 'C:\Borland\BCC55\bin' to the existing path.
  autoexec.bat¿¡¼­ 'C:\Borland\BCC55\bin' °æ·Î¸¦ Ãß°¡½ÃÄÑ¾ß ÇÑ´Ù.

4. Set compiler options and linker options.
  ÄÄÆÄÀÏ·¯ ¿É¼Ç°ú ¸µÄ¿ ¿É¼ÇÀ» ¼ÂÆ®ÇÑ´Ù.
  
  From the bin directory of your installation,
  »ç¿ëÀÚ°¡ ÀνºÅçÇÑ °÷ÀÇ bin µð·ºÅ丮¿¡
  create a 'bcc32.cfg' file which will set
  'bcc32.cfg' ÆÄÀÏÀ» ¸¸µé°í ¿©±â¿¡
  
  the compiler options for the Include and Lib paths (-I and -L switches to compiler)
  by adding these lines:
  ´ÙÀ½°ú °°ÀÌ Include¿Í Lib °æ·Î(-I°ú -L ÄÄÆÄÀÏ·¯ ½ºÀ§Ä¡)¿¡ ´ëÇÑ ÄÄÆÄÀÏ·¯ ¿É¼ÇÀ» ÁöÁ¤ÇÑ´Ù.
      -I"C:\Borland\BCC55\include"
      -L"C:\Borland\BCC55\lib"
      
  create an 'ilink32.cfg' file which will set the linker option for the Lib path by adding
  this line:
  'ilink32,cfg' ÆÄÀÏÀ» ¸¸µé°í ¿©±â¿¡ ´ÙÀ½°ú °°ÀÌ Lib °æ·Î¿¡ ´ëÇÑ ¸µÄ¿¿É¼ÇÀ» ÁöÁ¤ÇÑ´Ù.
      -L"c:\Borland\BCC55\lib"

Backward Forward Post Reply List