Search This Blog

Tuesday, August 2, 2011

Eclipse and C/C++

I downloaded the CDT from eclipse site , download cygwin, add some development packages as g++ / gcc / make.

you have two option:
add the bin directory into the path (C:\cygwin\bin).
or goto -> windows->prefrences->c/c++ -> build->environment click add .
 set varibale name to PATH and the VALUE to C:\cygwin\bin, make sure the "Append variable to native" is checked.

Configure the GDB:
Go to Windows->Preference->C/C++ -> Debug -> Common Source Lookup. add following 'Path mapping'.
  • \cygdrive\c -> c:\
 in case you get error like
 "Program not Binary" error while trying to debug  while running your compile program


Go to the project property choose
Make project --> and in the tab Binary Parser
choose :
"Cygwin PE binary parser"

Another option is to use the Mingw, install it with the msys ,

goto -> windows->prefrences->c/c++ -> build->environment click add .
 set varibale name to PATH and the VALUE to C:\mingw\bin;C:\MinGW\msys\1.0\bin, make sure the "Append variable to native" is checked.


some usefull links that can help you developing c++ application via Eclipse IDE:
Setting up Eclipse CDT on Windows, Linux/Unix, Mac OS X

  Setup Cygwin toolchain in Eclipse CDT

Developing applications using the Eclipse C/C++ Development Toolkit

Integrated Development Environment: C/C++ development with the Eclipse Platform


i am sure there are many article even better than the above i mentioned , but i used the above ...

Yaniv Tzanany

No comments: