Numerical Recipes Forum  

Go Back   Numerical Recipes Forum > Obsolete Editions Forum > General Problems in Using NR

Reply
 
Thread Tools Display Modes
  #1  
Old 09-13-2004, 01:36 PM
Robert Dorazio Robert Dorazio is offline
Member
 
Join Date: Oct 2002
Posts: 6
problems with MTL wrapper file for nrutil.h

I routinely use the MTL wrapper file, "nrutil_mtl.h" that joins the MTL Vector<> and Matrix<> classes to the NRVec and NRMat classes. Recently, I obtained a compilation error (using GCC 3.0) that seems to have been created by inclusion of this file. Interestingly, the source code has no direct dependence on this file (i.e., the source code compiles and executes fine provided the statement, #include "nr.h", is not present in the source). Has anyone had similar experiences? Here are the compiler errors:


C:\MyC++SourceCode\Extract>mingw32-make
g++.exe -c driver.cc -o driver.o -Ic:/MinGW/include -Ic:/MingGW/include/c++/3.2 -Ic:/Blit
z++-0.7 -Ic:/mtl-2.1.2-21 -Ic:/NumericalRecipes/Cpp210/cpp/other -Ic:/MyC++SourceCode/Util
ities -ftemplate-depth-30 -Wno-deprecated -s -ansi
In file included from c:/NumericalRecipes/Cpp210/cpp/other/nrutil.h:5,
from c:/NumericalRecipes/Cpp210/cpp/other/nr.h:5,
from driver.cc:5:
c:/NumericalRecipes/Cpp210/cpp/other/nrutil_mtl.h:127: warning: `typename
mtl::matrix, mtl::dense<0>, mtl::row_major>::type'
is implicitly a typename
c:/mtl-2.1.2-21/mtl/matrix_traits.h: In instantiation of `mtl::linalg_traits bool, 1> >':
c:/MyC++SourceCode/Utilities/bul/Extract.h:104: instantiated from `blitz::Array e, 1> bul::extract(const blitz::Array&, const blitz::Array&) [with
T = float]'
driver.cc:44: instantiated from here
c:/mtl-2.1.2-21/mtl/matrix_traits.h:197: no type named `dimension' in `class
blitz::Array'
c:/mtl-2.1.2-21/mtl/matrix_traits.h:199: no type named `value_type' in `class
blitz::Array'
c:/mtl-2.1.2-21/mtl/matrix_traits.h:201: no type named `sparsity' in `class
blitz::Array'
c:/mtl-2.1.2-21/mtl/matrix_traits.h:203: no type named `value_type' in `class
blitz::Array'
mingw32-make: *** [driver.o] Error 1
Reply With Quote
  #2  
Old 09-22-2004, 08:12 AM
May Brith May Brith is offline
Member
 
Join Date: Sep 2004
Location: Norway
Posts: 2
Doratzio?

Send me an E-mail
Reply With Quote
  #3  
Old 09-22-2004, 08:37 AM
Robert Dorazio Robert Dorazio is offline
Member
 
Join Date: Oct 2002
Posts: 6
Dear May Brith,

My email address is bdorazio@usgs.gov.

What is your email address?
Reply With Quote
  #4  
Old 09-22-2004, 08:50 AM
May Brith May Brith is offline
Member
 
Join Date: Sep 2004
Location: Norway
Posts: 2
Norway

Hi,are you Bob Doratzio with a T that used to live in Norway?
May_brith.hollos@chello.no
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is On

Forum Jump


All times are GMT -5. The time now is 09:44 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.