|Re: Compile C files with g++ rather than gcc [message #1850277 is a reply to message #1850206]
||Wed, 23 February 2022 15:53
Registered: October 2012
g++ is a frontend for the GNU Compiler Suite.|
It is essentially the equivalent of gcc -xc++
If you are asking how to compile a C program with g++ you could
try to override it with the -x flag (-xc). Not sure if it will work.
If you meant compile a C++ program with a .c extent, you could
just use g++ and add the -x flag to be sure.
Seems easier to use gcc or g++ as appropriate.
You could also change the Eclipse file associations but that
would open a potential can of worms.
Powered by FUDForum
. Page generated in 0.05786 seconds