Getting ITL to work on MacOSX 10.1.5

Wayne Crawford <[email protected]>
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <a05111b06ba3a201b0179@[134.157.128.213]>
Hello there,

I've been having trouble configuring ITL to work
under Macintosh OSX 10.1.5 (gcc 2.95.2).  I already use MTL functions 
	in my programs.  There were initially some configuration problems,
	but I eliminated them by:
   - Updating the config.sub and config.guess files to the
	latest Free Software Foundation versions
   - Changing "CXX=g++" to "CXX=cc" on line 1363 of the "configure" file
        (MacOSX 10.1.5 calls the Gnu Cplusplus compiler 'cc', but
	configure forced it to try "g++" while checking for abs() and sqrt() even
	though I'd 'set CXX=cc' in the shell).

I applied the same modifications to the ITL configuration, but I still get the
   following problems:
  - When compiling 'cgs.cpp' (from the examples/laplacian directory):
		Error: "parse error before '='"
	for all lines in ilut.h that start with
		"entry_vec::iterator"

  - When compiling "bicg.cpp", "gmres.cpp", "bicgstab.cpp", "cg.cpp", or "qmr.cpp"
    (from the examples/laplacian directory):
	Error: "no match for call to `(mtl::dimension<int,0,0>) (int &, int &)"
      which was instantiated from the line
	"bicg(A, x, b, precond(), iter);"
      This time, it looks like the "error" is in MTL, is there something
      I need to include in the configure file?

BTW, I configured in the top directory of the ITL folder ("itl-4.0.0-1") using
   "configure --with-mtl=/Users/crawford/MyLibs/SRC/mtl-2.1.2-21"
then
   "make install"

Can anyone tell me what I'm doing wrong?

Sincerely,
  Wayne Crawford

PS: here's the long version of the last error:

~/MyLibs/SRC/mtl-2.1.2-21/mtl/matrix_implementation.h: In method `mtl::row_matrix<mtl::gen_ext_comp2D<double,long unsigned int,0,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,long unsigned int> >::row_matrix<mtl::row_matrix<mtl::gen_ext_comp2D<double,long unsigned int,0,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,long unsigned int> > >(int, int, const mtl::row_matrix<mtl::gen_ext_comp2D<double,long unsigned int,0,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,long unsigned int> > &)':

~/MyLibs/SRC/mtl-2.1.2-21/mtl/matrix_implementation.h:1141:   instantiated from `mtl::triangle_matrix<mtl::row_matrix<mtl::gen_ext_comp2D<double,long unsigned int,0,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,long unsigned int> >,mtl::unit_lower__>::triangle_matrix<mtl::row_matrix<mtl::gen_ext_comp2D<double,long unsigned int,0,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,long unsigned int> > >(const mtl::row_matrix<mtl::gen_ext_comp2D<double,long unsigned int,0,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,long unsigned int> > &)'

~/MyLibs/SRC/itl-4.0.0-1/itl/preconditioner/detail/preconditioner.h:52:   instantiated from `itl::preconditioner<mtl::row_matrix<mtl::gen_ext_comp2D<double,long unsigned int,0,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,long unsigned int> >,mtl::row_matrix<mtl::gen_ext_comp2D<double,long unsigned int,0,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,long unsigned int> >,21,18>::preconditioner(const mtl::row_matrix<mtl::gen_ext_comp2D<double,long unsigned int,0,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,long unsigned int> > &, const mtl::row_matrix<mtl::gen_ext_comp2D<double,long unsigned int,0,0,0>,mtl::gen_rect_indexer<mtl::row_orien,0,0,long unsigned int> > &)'

~/MyLibs/SRC/itl-4.0.0-1/itl/preconditioner/ilu.h:242:   instantiated from `itl::ILU<mtl::row_matrix<mtl::gen_array2D<mtl::compressed1D<double,int,0> >,mtl::gen_rect_indexer<mtl::row_orien,0,0,long unsigned int> > >::operator ()()'
bicg.cpp:127:   instantiated from here

~/MyLibs/SRC/mtl-2.1.2-21/mtl/matrix_implementation.h:572: no match for call to `(mtl::dimension<int,0,0>) (int &, int &)'

    /usr/bin/cc  -c "-F/Users/crawford/testITL/build"  "-I/Users/crawford/testITL/build/include" "-I/Users/crawford/MyLibs/netcdf-3.5.0/include" "-I/Users/crawford/MyLibs/SRC/itl-4.0.0-1" "-I/Users/crawford/MyLibs/SRC/mtl-2.1.2-21"  "-arch" "ppc" "-fno-common" "-fpascal-strings" "-O0" "-Wmost" "-Wno-four-char-constants" "-Wno-unknown-pragmas" "-pedantic" "-Wall" "-pipe" "-g" "-pg" "-precomp-trustfile" "/Users/crawford/testITL/build/intermediates/c_complfd.build/TrustedPrecomps.txt" "-Wp,-header-mapfile,/Users/crawford/testITL/build/intermediates/c_complfd.build/Headermaps/testitl.hmap"   "-I/Users/crawford/testITL/build/intermediates/c_complfd.build/DerivedSources"   "bicg.cpp"  -o "/Users/crawford/testITL/build/intermediates/c_complfd.build/Objects/ppc/bicg.o" 
-- 
___________________________________________________
Wayne C Crawford
Laboratoire de Géosciences Marines
IPGP Case 89
Tour 24-25, 1ere Etage 
4 Place Jussieu
75252 Paris cedex 05

Tel: (+33) 1 4427 2821
Fax: (+33) 1 4427 9969
Email: [email protected]
_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.