Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Using GCC not G++ on Windows
Using GCC not G++ on Windows [message #1526485] Wed, 24 December 2014 11:15 Go to next message
Eclipse UserFriend
Hello forum,

This is probably a question that has been asked 1000's of time. I have just installed Eclipse and MinGW GCC complier only. I have set up my paths. I have selected a 'C' project and 'C' source file. Written a "Hello World" app. And eclipses wants to use g++ (and cannot find as it's not installed).

How do I get eclipse to use GCC and not G++. I have googled but I can't seem to find what I am looking for.

Kind Regards and thank you in advance,
Harold Clements
Re: Using GCC not G++ on Windows [message #1711553 is a reply to message #1526485] Sat, 17 October 2015 02:48 Go to previous messageGo to next message
Eclipse UserFriend
I am having a similar issue. I have both gcc and g++ through MinGW, but Eclipse only sets GCC as the toolchain regardless of wheteher the project is a C or C++ project. Of course as a C++ project requires G++ the build fails. If you found a solution please post.
  • Attachment: 584566.PNG
    (Size: 22.04KB, Downloaded 187 times)
Re: Using GCC not G++ on Windows [message #1711555 is a reply to message #1526485] Sat, 17 October 2015 02:57 Go to previous messageGo to next message
Eclipse UserFriend
index.php/fa/23582/0/I am having the opposite problem. I have gcc and g++. I create a c++ project and eclipse assigns gcc as the toolchain. Thus, build fails because there are no c++ libraries. If you have found a solution please post.
  • Attachment: 584566.PNG
    (Size: 22.04KB, Downloaded 1352 times)
Re: Using GCC not G++ on Windows [message #1712490 is a reply to message #1711553] Sun, 25 October 2015 21:20 Go to previous messageGo to next message
Eclipse UserFriend
Am 19.10.2015 um 16:35 schrieb Bradley Atchison:
> I am having a similar issue. I have both gcc and g++ through MinGW, but Eclipse only sets GCC as the toolchain regardless of wheteher the project is a C or C++ project. Of course as a C++ project requires G++ the build fails. If you found a solution please post.
>
Because GCC means "Gnu Compiler Collection" and contains not only the
gcc (C compiler) and g++ (C++ compiler), but also others like gfortran
(Fortran) ...
Re: Using GCC not G++ on Windows [message #1712500 is a reply to message #1711555] Mon, 26 October 2015 03:32 Go to previous message
Eclipse UserFriend
Bradley Atchison wrote on Sat, 17 October 2015 09:57
index.php/fa/23582/0/I am having the opposite problem. I have gcc and g++. I create a c++ project and eclipse assigns gcc as the toolchain. Thus, build fails because there are no c++ libraries. If you have found a solution please post.


You should have a C++ compiler if your project nature is for C++. Try again with a C project.
Previous Topic:Prebuilt index for C symbols?
Next Topic:Extend GCC language
Goto Forum:
  


Current Time: Sat Jul 12 09:48:56 EDT 2025

Powered by FUDForum. Page generated in 0.03817 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top