This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
sub-project link problem
- To: autoconf at gnu dot org, automake at gnu dot org
- Subject: sub-project link problem
- From: "Lars J. Aas" <larsa at sim dot no>
- Date: Tue, 28 Mar 2000 14:04:41 +0200
Hi,
After building a C++ library (autoconf/automake/libtool setup), the build
process continues in a sub-project (a subdir with it's own configure setup)
to build some example programs using the libraryš. This is done with this
line:
AC_CONFIG_SUBDIRS(examples)
The example programs are also C++, and compile without any problem.
The examples/configure.in has got the following two lines at the top:
AC_PROG_CXX
AC_LANG_CPLUSPLUS
The problem is that when it's time to link against the C++ library in
the parent project, a C linker is chosen, which fails on a lot of
platforms (IRIX is one of them). For Linux, gcc handles it so it took
some time before we noticed the problem.
Does anyone know why $(LINK) is chosen instead of $(CXXLINK) in the
subproject, even though it's a C++ project, using the C++ compiler while
compiling the objects?
Lars J
--
[1] For those interested in the code, the projects are the GUI toolkit
libraries for Coin, an Open Inventor implementation.
cvs -d :pserver:cvs@cvs.sim.no:/export/cvsroot login (password: cvs)
cvs -d :pserver:cvs@cvs.sim.no:/export/cvsroot co simage
cvs -d :pserver:cvs@cvs.sim.no:/export/cvsroot co Coin
cvs -d :pserver:cvs@cvs.sim.no:/export/cvsroot co SoQt
(or SoXt if you don't have Qt)