This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multi-language app


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]