[ Dimanche 20 Mars 2005 16:51 ] | 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:
Hi thank you for taking the time to look into the problem. However I should have emailed you earlier : almost none of the examples compile in arpack++ in debian because of the compiler being more restrictive than the one used to develop arpack++. I have modifying all the examples to comply with the new gcc compilers but haven't yet uploaded the package. Hopefully I will have some time soon to finish this. Best regards C. | | //****************************** | 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/ -- Debian Developer Scienfific computing packages maintainer Fingerprint = 3703 50DE 7A9F 024E 0F26 0D07 A18F B40B D4BE 1450