"no matching function for call to" and templates and old code

From: H. S. (g_reate_xcalibur_at_yahoo.com)
Date: 02/05/05


Date: Sat, 05 Feb 2005 00:37:39 GMT

Hi,

I am trying to compile the examples in arpack++ library on x86 Linux
(flavor of Red Hat) running 2.4.24 kernel and g++ (3.2 20020903 version).

Here is part of the compiler error I am getting. If needed, I can give
complete error output:
#----------------------------------------
/home/red/include/arpack++/include/arlsnsym.h: In constructor
    `ARluNonSymStdEig<FLOAT>::ARluNonSymStdEig(int,
ARluNonSymMatrix<TYPE>&,
    char*, int, FLOAT, int, FLOAT*, bool) [with FLOAT = double]':
/home/red/include/arpack++/examples/areig/areig.h:628: instantiated
from `int AREig(FLOAT*, FLOAT*, FLOAT*, int, int, FLOAT*, int*, int*,
int, char*, int, FLOAT, int, FLOAT*, bool) [with FLOAT = double]'
simple.cc:50: instantiated from here
/home/red/include/arpack++/include/arlsnsym.h:145: no matching
    function for call to
`ARluNonSymStdEig<double>::DefineParameters(int, int&,
    ARluNonSymMatrix<double>*, <unknown type>, char*&, int&, double&, int&,
    double*&, bool&)'
/home/red/include/arpack++/include/arseig.h:139: candidates are:
    void ARStdEig<FLOAT, TYPE, FOP>::DefineParameters(int, int, FOP*, void
    (FOP::*)(TYPE*, TYPE*), char* = "LM", int = 0, FLOAT =
    0x0000000000000000000000000000000000000000, int = 0, TYPE* = 0, bool
= true)
    [with FLOAT = double, TYPE = double, FOP = ARluNonSymMatrix<double>]
#----------------------------------------

I am trying to see what could be going wrong in the source code library
(which dates to 1997!). Any idea where I should start looking in the
source code? Or is there a probably cause g++ is failing?

Thanks a ton,
->HS

-- 
(Remove all underscores,if any, from my email address to get the correct 
one. Apologies for the inconvenience but this is to reduce spam.)


Relevant Pages