Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new

2019-06-23 Thread Yuri
++. 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

Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new

2019-06-23 Thread Yuri
process. For instance CXX=my-c++ ./configure ... could be used to change C++ compiler. It seems to know that c++ is the C++ compiler, but then uses cc anyway: https://people.freebsd.org/~yuri/vienna.log Yuri ___ https://lists.gnu.org/mailman

libtool uses cc to link a mixed C/C++ project and fails to find operator new

2019-06-23 Thread Yuri
The source tarball: https://www.tbi.univie.ac.at/RNA/download/sourcecode/2_4_x/ViennaRNA-2.4.13.tar.gz Thank you, Yuri ___ https://lists.gnu.org/mailman/listinfo/libtool

Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new

2019-06-23 Thread Yuri
On 2019-06-23 12:06, Bob Friesenhahn wrote: Are you using expected file extensions for C++ code?  Is your main program a C++ module or a C module? C++ code uses .cpp extension. main programs are all in .c files. Yuri ___ https

Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new

2019-06-23 Thread Yuri
On 2019-06-23 12:19, Roumen Petrov wrote: cc ? I'm not sure which compiler suite is used on FreeBSD but it seems to me C++ compiler is not installed. clang8 is used. cc is a C compiler, c++ is a C++ compiler. Yuri ___ https://lists.gnu.org

Re: libtool uses cc to link a mixed C/C++ project and fails to find operator new

2019-06-24 Thread Yuri
nce the error-prone -lstdc++ are removed, libtool fails because it links with the C compiler. Yuri ___ https://lists.gnu.org/mailman/listinfo/libtool

How to make libtool to use the external linker to link only one shared library in a large project?

2019-05-22 Thread Yuri
this, and this library is built with missing MPI library linkage, and therefore with dangling symbols. The conversation: https://github.com/FFTW/fftw3/issues/169 Thank you, Yuri ___ https://lists.gnu.org/mailman/listinfo/libtool