Cross compiler prefix and path in eclipse

nish picture nish · Jun 26, 2013 · Viewed 69.1k times · Source

I'm trying to create a C++ project on eclipse. I have installed eclipse-cdt for that.

While creating a project, a pop up window asks for cross compiler prefix and cross compiler path. Could someone please explain what are those and what do I need to add in those fields? Are those fields absolutely necessary to fill?

Answer

yeremy picture yeremy · Jun 2, 2014

If you are using a Mac, you can select MacOS GCC instead of Cross GCC. If you are on Windows, you will have to install a C++ compiler. I recommend you install Cygwin, try following the directions here. http://www3.ntu.edu.sg/home/ehchua/programming/howto/eclipsecpp_howto.html Once you've installed the C++ compiler, restart Eclipse and try to create the project again. Hope this helps.