This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Multi-language app
- From: "arrl via gcc-help" <gcc-help at gcc dot gnu dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 13 Feb 2018 12:18:26 -0500
- Subject: Re: Multi-language app
- Authentication-results: sourceware.org; auth=none
- References: <CAF1jjLu5jKZpWpYy8pZvhPFd=KNLHFcUtDkigRJWjN9v4M4Wkg@mail.gmail.com>
- Reply-to: tprince at intelretiree dot com
- Reply-to: arrl <n8tm at aol dot com>
On 2/13/2018 11:56 AM, NightStrike wrote:
> I have an application that currently combines C and Fortran objects, and so
> links with gfortran to pull in the right runtimes. We'd like to also
> include C++. Does the g++ front end do anything at link time other than
> add -lstdc++? Can I just add that flag to gfortran to successfully link C,
> fortran, and C++ objects into a single binary?
>
Yes, that's how it's normally done.
--
Tim Prince