[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libtool uses cc to link a mixed C/C++ project and fails to find oper
From: |
Bob Friesenhahn |
Subject: |
Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new |
Date: |
Wed, 26 Jun 2019 16:57:29 -0500 (CDT) |
User-agent: |
Alpine 2.20 (GSO 67 2015-01-07) |
On Wed, 26 Jun 2019, Roumen Petrov wrote:
but this is error-prone because
some other toolchains might use a different C++ library.
Oracle Solaris 11 with the Solaris Studio 12 compiler supports a large
number of C++ runtime libraries as described at
https://docs.oracle.com/cd/E37069_01/html/E37075/bkaje.html
When dealing with C++, one must know what one is doing. The only
portable way to link with C++ is by assuring that the main() function
is in a C++ module. If the C++ compiler is intentionally used to link
using the other options supplied to the compiler, then the correct
libraries will be automatically selected by the compiler.
On a typical GNU Linux or FreeBSD system, all C++ software is built
using the same C++ runtime libraries (at some specified C++ standard
level). This is accomplished through brute force by the OS package
maintainers.
Bob
--
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, (continued)
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, Roumen Petrov, 2019/06/23
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, Yuri, 2019/06/23
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, Roumen Petrov, 2019/06/23
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, Yuri, 2019/06/23
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, Bob Friesenhahn, 2019/06/23
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, Yuri, 2019/06/23
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, Bob Friesenhahn, 2019/06/23
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, Roumen Petrov, 2019/06/24
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, Yuri, 2019/06/24
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, Roumen Petrov, 2019/06/26
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new,
Bob Friesenhahn <=
- Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, Bob Friesenhahn, 2019/06/24
Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new, John W. Eaton, 2019/06/25