This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Does g++ really need to compile main, if c++ code is involved?
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Eric Wolf <eric dot wolf at abas dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 20 Mar 2014 19:27:17 +0100
- Subject: Re: Does g++ really need to compile main, if c++ code is involved?
- Authentication-results: sourceware.org; auth=none
- References: <532AA680 dot 2050202 at abas dot de>
* Eric Wolf:
> We have a big bunch of C and C++ code in our product and compile
> main with g++, because I read in
>
> http://www.parashift.com/c++-faq/overview-mixing-langs.html
>
> that this is needed.
This is target-dependent. For example, GNU/Linux generally doesn't
have a problem anymore with a C main and C++ code elsewhere.