Re: [Lapackpp-devel] example: tCmplxSolve.cc fails on MSVC++ 2005
Status: Beta
Brought to you by:
cstim
From: Aosheng R. <ro...@gm...> - 2006-08-18 16:41:49
|
I tested tCmplxSolve.cc but failed, even if I add #define LA_COMPLEX_SUPPORT that is missing in the original code. -------------------------------------------------------------------------------------------------- #define LA_COMPLEX_SUPPORT // added #include "lafnames.h" /* macros for LAPACK++ filenames */ #include LA_GEN_MAT_COMPLEX_H #include LA_VECTOR_DOUBLE_H #include "blaspp.h" #include LA_SOLVE_DOUBLE_H #include LA_GENERATE_MAT_DOUBLE_H #include LA_EXCEPTION_H #include LA_UTIL_H #include "lasvd.h" ---------------------------------------------------------------------------------------------------- The error message are pasted as follows ---------------------------------------------------------------------------------------------------- 1>------ Build started: Project: TestCmx, Configuration: Debug Win32 ------ 1>Compiling... 1>tCmplxSolve.cc 1>e:\gnu\lapackpp-2.4.12\include\gmc.h(101) : warning C4251: 'LaGenMatComplex::v' : class 'VectorComplex' needs to have dll-interface to be used by clients of class 'LaGenMatComplex' 1> e:\gnu\lapackpp-2.4.12\include\vc.h(58) : see declaration of 'VectorComplex' 1>e:\gnu\lapackpp-2.4.12\include\gmc.h(665) : error C2375: 'operator <<' : redefinition; different linkage 1> e:\gnu\lapackpp-2.4.12\include\gmc.h(580) : see declaration of 'operator <<' 1>e:\gnu\lapackpp-2.4.12\include\laexcp.h(51) : warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface class 'LaException' 1> d:\microsoft visual studio\vc\include\stdexcept(149) : see declaration of 'std::runtime_error' 1> e:\gnu\lapackpp-2.4.12\include\laexcp.h(50) : see declaration of 'LaException' 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(89) : error C2264: 'operator <<' : error in function definition or declaration; function not called 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(89) : error C2088: '<<' : illegal for class 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(91) : error C2264: 'operator <<' : error in function definition or declaration; function not called 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(91) : error C2088: '<<' : illegal for class 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(107) : error C2264: 'operator <<' : error in function definition or declaration; function not called 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(107) : error C2088: '<<' : illegal for class 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(109) : error C2264: 'operator <<' : error in function definition or declaration; function not called 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(109) : error C2088: '<<' : illegal for class 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(124) : error C2264: 'operator <<' : error in function definition or declaration; function not called 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(124) : error C2088: '<<' : illegal for class 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(126) : error C2264: 'operator <<' : error in function definition or declaration; function not called 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(126) : error C2088: '<<' : illegal for class 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(214) : error C2264: 'operator <<' : error in function definition or declaration; function not called 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(214) : error C2088: '<<' : illegal for class 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(223) : error C2264: 'operator <<' : error in function definition or declaration; function not called 1>e:\gnu\lapackpp-2.4.12\testing\tcmplxsolve.cc(223) : error C2088: '<<' : illegal for class 1>Build log was saved at " file://e:\GNU\lapackpp-2.4.12\testing\TestCmx\TestCmx\Debug\BuildLog.htm<file:///e:/GNU/lapackpp-2.4.12/testing/TestCmx/TestCmx/Debug/BuildLog.htm> " 1>TestCmx - 17 error(s), 2 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ---------------------------------------------------------------------------------------------------- It seems that complex definition of lapackpp on windows may have problems? The error messages above are almost the same as my application. For your reference, I describe my installation as follows: Step1: Install lapackpp2.4.11-setup.exe and generate liblapack32.lib and libblas32.lib Step2: CVS lapackpp 2.4.12 with new updates (the inverse of complex value matrix added by Christian) Step3: make dist and generate lapackpp 2.4.12 and install it using MSVC++ 2005 Step4: Create a project and Testing..... Does Christian help me figure out the problem? Regards, ------------- |