Multi-language app

arrl via gcc-help gcc-help@gcc.gnu.org
Tue Feb 13 17:25:00 GMT 2018


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



More information about the Gcc-help mailing list