mtl compile problems

Roger Young <[email protected]> Mon, 22 Jan 2007 21:00:30 +1300
Newsgroups gmane.comp.lib.mtl.devel
Organization [email protected]
Message-ID <[email protected]>
Hello, I am trying to install mtl v.2.1.22-2
I am using gcc v.3.4.6 and Linux v.2.6.18

The compile time error messages are as shown below
I fixed this error by doing as suggested ie using
typename mtl:: etc, but there were many other
errors as well, so I wonder if there is something wrong in 
my configuration (also included below).

I would be grateful for any suggestions you can provide...

Thankyou,
Roger Young.

......................................................................
make[2]: Entering directory `/usr/local/src/mtl-2.1.2-22/contrib/examples'
g++ -DHAVE_CONFIG_H -I. -I. -I../../mtl   -I../..     -ftemplate-depth-30 -Wall -c abs_sum.cc
../../mtl/mtl.h: In function `typename mtl::linalg_traits<Linalg>::magnitude_type mtl::one_norm(const Vector&, mtl::oned_tag) [with Vector = mtl::external_vec<double, 4, unsigned int>]':
../../mtl/mtl.h:576:   instantiated from `typename mtl::linalg_traits<Linalg>::magnitude_type mtl::one_norm(const LinalgObj&) [with LinalgObj = mtl::external_vec<double, 4, unsigned int>]'
abs_sum.cc:20:   instantiated from here
../../mtl/mtl.h:236: error: dependent-name ` mtl::dim_n<Vector>::RET' is parsed as a non-type, but instantiation yields a type
../../mtl/mtl.h:236: note: say `typename  mtl::dim_n<Vector>::RET' if a type is meant
make[2]: *** [abs_sum.o] Error 1
make[2]: Leaving directory `/usr/local/src/mtl-2.1.2-22/contrib/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mtl-2.1.2-22/contrib'
make: *** [all-recursive] Error 1

...................................................................
root@Truth:/usr/local/src/mtl-2.1.2-22# ./configure
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
Configure MTL for i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for a BSD compatible install... /usr/bin/ginstall -c
checking for Cygwin environment... no
checking if we really have cygwin... Environment is not cygwin.
checking for c++... KCC
checking whether the C++ compiler (KCC  ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.
root@Truth:/usr/local/src/mtl-2.1.2-22# CXX=gcc
root@Truth:/usr/local/src/mtl-2.1.2-22# export CXX
root@Truth:/usr/local/src/mtl-2.1.2-22# ./configure
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
Configure MTL for i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for a BSD compatible install... /usr/bin/ginstall -c
checking for Cygwin environment... no
checking if we really have cygwin... Environment is not cygwin.
checking for c++... gcc
checking whether the C++ compiler (gcc  ) works... yes
checking whether the C++ compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether gcc accepts -g... yes
Configuring for GNU C++
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for copysign... yes
checking for std::abs... yes
checking for <limits> header... yes
checking whether to use MTL exceptions... no
checking whether to use BLAIS performance optimizations... no
checking whether to use interface to matlab files... no
checking whether to use interface to LAPACK... no
creating ./config.status
creating Makefile
creating mtl/Makefile
creating contrib/Makefile
creating contrib/examples/Makefile
creating contrib/doubledouble/Makefile
creating test/Makefile
creating test/src/Makefile
creating test/bin/Makefile
creating mtl/mtl_config.h

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/