Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross compiler prefix and path in eclipse

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?

like image 382
nish Avatar asked Jun 26 '13 09:06

nish


People also ask

What is cross-compiler prefix in eclipse?

In Cross compiler Prefix you need to write 'arm-none-eabi-' and in Cross compiler path you have to select the path for GCC bin folder. You need to install Cygwin GCC for this.

What is cross GCC command in Eclipse?

In Cross GCC Command, specify the Cross compiler prefix as mingw32- and the Cross compiler path as C:\MingGW\bin. The prefix is obtained from the mingw32-g++ .exe file and the mingw32-gcc .exe file for in the C:\MingGW\bin directory. Click on Finish.

How do I run a CPP code in Eclipse?

Right-click the project and select Build Project. Finally, right-click the project and select run as and then Local C/C++ application. This should run your application.


1 Answers

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. https://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.

like image 90
yeremy Avatar answered Sep 28 '22 14:09

yeremy