By expicitly making the fourth argument of
DefineParameters in /usr/include/arpack++/arlsnsym.h (line
144, IIRC) as an address(by preceding it with a "&") made
the compiler happy. Here is the relevant portion I have in
this file now which compiles okay:
//******************************
template<class FLOAT>
inline ARluNonSymStdEig<FLOAT>::
ARluNonSymStdEig(int nevp, ARluNonSymMatrix<FLOAT>& A,
char* whichp, int ncvp, FLOAT tolp,
int maxitp, FLOAT* residp, bool ishiftp)
{
NoShift();
//followin modified by HS,19Mar2005, to remove <unknown
type> compiler error
//DefineParameters(A.ncols(), nevp, &A,
ARluNonSymMatrix<FLOAT>::MultMv,
// whichp, ncvp, tolp, maxitp, residp,
ishiftp);
DefineParameters(A.ncols(), nevp, &A,
&ARluNonSymMatrix<FLOAT>::MultMv,
whichp, ncvp, tolp, maxitp, residp,
ishiftp);
} // Long constructor (regular mode).
///*****************************************
Though that "<unknown type>" compiler error is gone, but
running "make simple" in examples/nonsym directory then
gave a "default agrument already given" compiler error in
/usr/include/arpack++/arlgnsym.h. This was solved by
removing the initialization of the second default argument
at line 131 of this file in the definition:
ChangeShift(FLOAT sigmaRp, FLOAT sigmaIp = 0.0)
The revised definition now that works for me is:
///***************************************************
template<class FLOAT>
inline void ARluNonSymGenEig<FLOAT>::
//modified by HS,19Mar2005, to remove "default argument"
compiler error
//ChangeShift(FLOAT sigmaRp, FLOAT sigmaIp = 0.0)
ChangeShift(FLOAT sigmaRp, FLOAT sigmaIp)
///***************************************************
Once solving this, I am not facing other problems related
to linking. It appears that I do not have SuperLU package
installed. However, to compile simple.cc it doesn't seem
to be necessary to have it installed according to the
README file in
/usr/share/doc/arpack++/examples/areig/nonsym/. Oh well, I
need to install that and see if that solves these linker
problems. But I digress from the topic of this bug :)
->HS
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]