Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new
Yuri <[email protected]>
| Newsgroups | gmane.comp.gnu.libtool.general |
|---|---|
| Message-ID | <[email protected]> |
On 2019-06-23 17:29, Bob Friesenhahn wrote: >> > > I doubt that libtool can be smart enough to intuit when the C++ > compiler needs to be used for linking when the program being linked is > C. The only way it could tell this is via library dependencies. Just > supplying the library dependencies is not enough. > > C++ introduces a new wrinkle in that there are now often 3 or 4 > different C++ variants available based on C++ standard level, and > library options (e.g. different C++ STL library implementations). > > Things have changed quite a lot in the past several years when it > comes to C++. > > In addition to being linked using the C++ compiler, the correct > options would need to be passed to the C++ compiler so that the > correct standard level and libraries are used. So is there an easy way to override this and always use C++ way of linking? Yuri _______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool