Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between cross GCC and MacOSX GCC on eclipse

Tags:

c++

macos

eclipse

I've just downloaded the eclipse IDE for C/C++ developers I wanted to start a new project. After choosing the location for the file, I was asked to choose between these two toolchains: cross GCC and MacOSX GCC.

What's the difference? Which one should I choose?

like image 424
Zanubia Avatar asked Oct 04 '17 12:10

Zanubia


2 Answers

In CDT, Cross GCC is a cross-compiler project, one that can build binaries for other platforms/architectures. MacOSX GCC builds only for Mac.

This happens in other operating systems too. If you run CDT in Linux, you must select between Cross GCC and Linux GCC. In Windows, you may select between Cross GCC, Cygwin GCC and Microsoft Visual C++

like image 52
Jaime Avatar answered Sep 20 '22 13:09

Jaime


As @Jaime said, "In CDT, Cross GCC is a cross-compiler project, one that can build binaries for other platforms/architectures. MacOSX GCC builds only for Mac."

But for guidance on which one to choose, according to this article, Cross GCC won't work in Eclipse, so MacOSX GCC is the way to go:

make sure that you select “MacOSX GCC”. I experienced that selecting the other option (i.e., Cross GCC) does not allow eclipse to run your project. In fact, by choosing this wrong option you’ll get the annoying message of “Launch fail. Binaries are missing” when you try to run your project.

like image 27
mannyglover Avatar answered Sep 22 '22 13:09

mannyglover