Re: [Lapackpp-devel] Compiling errors of tCmplxSolve.cc with updated lapackpp 2.4.12
Status: Beta
Brought to you by:
cstim
From: Aosheng R. <ro...@gm...> - 2006-08-20 18:31:15
|
Christian, >From headfile lacomplex, I noticed that you indeed define complex<double> for gcc only, but not check the definition for msvc. I would try to make the modification, after I carefully check lacomplex, complex on MSVC and complex on GNU C++ . If you have any good suggestions, just let me know. I need to figure out the architecture of lapackpp. Regards, ------------- Rong On 8/20/06, Christian Stimming <sti...@tu...> wrote: > Am Samstag, 19. August 2006 13:35 schrieb Aosheng Rong: > > Can you add complex-value matrix support on Windows? The > > complex-value matrices are of essential to my applications. Lapackpp > > supports the complex-value matrices very well on Linux. > > Lapackpp supports complex-valued matrices on Windows as well, only with the > gcc compiler and not (yet) with the MSVC compiler. (And C++, in contrast to > C, is not compiler-independent.) I only need those matrices with the gcc > compiler, so I have no motivation for myself to spend this extra effort. > > You are invited to implement this yourself. In fact, why haven't you tried > what I said? Add the macro LA_COMPLEX_SUPPORT to the MSVC project properties > (C++ -> precompiler), and maybe add a few source files that haven't been > added to the MSVC project because they only contain complex-matrix related > code. matrix/src/gmc.cc, vc.cc and lavc.cc would be some that come to my > mind. > > The only real problem that could occur is the definition of the > la::complex<double> (typedef'd as LaComplex) in include/complex. The template > complex<...> class definition in that file was initially copied from gcc's > definition of complex<...>. Someone who wants to add complex support to MSVC > would have to check whether these definitions can be used in MSVC as well, > and potentially add some > #ifdef __GNUC__ > // existing code for gcc > #else > // new code for MSVC instead > #endif > everywhere. > > Good luck. > > Christian > > > > > > Thanks, > > ---------- > > > > On 8/19/06, Christian Stimming <sti...@tu...> wrote: > > > Seems to me you didn't compile the library lapackpp itself with the macro > > > LA_COMPLEX_SUPPORT defined. In the included vcproj file this is not (yet) > > > defined because, as I already said several times, the support for > > > complex-valued matrices in MSVC is untested so far. > > > > > > Christian > |