Setup Cygwin toolchain in Eclipse CDT

1. Install the Cygwin properly, you need following packages:

  • binutils
  • gcc
  • gcc-core
  • gcc-g++
  • gcc-mingw-core
  • gcc-mingw-g++
  • make
  • gdb (needed if you want to support debug in eclipse)

you can check your cygwin installation using the 'cygcheck -c' command

 

2. Add %cygwin%\bin to your env PATH, then open the eclipse. you will find the cygwin tool chain will be shown when you open a new c/cpp project wizard.

 

3. Configure the GDB.

Go to Windows->Preference->C/C++ -> Debug -> Common Source Lookup. add following 'Path mapping'.

      • \cygdrive\c -> c:\
      • \cygdrive\d -> d:\ 
        other drives if any .......

posted @ 2013-05-20 00:20  notCharming  阅读(403)  评论(0)    收藏  举报