Re: [Lapackpp-devel] Appreciation and suggestion
Status: Beta
Brought to you by:
cstim
From: Christian S. <sti...@tu...> - 2006-08-18 15:08:49
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aosheng Rong schrieb: > I compiled lapackpp 2.4.12 on windows and run your tGenSolve with > Testing Dir. It works. But when I compile my application that is > transplanted into Windows from Linux, I got the following compiling > errors(See below). My application has been succefully compiled under > Linux using lapackpp 2.4.12. > > 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 <<' Any error about "linkage" on Windows refers to missing "DLLIMPORT" macros. In this case the error says that in gmc.h:665 the operator<< is defined *with* DLLIMPORT whereas in gmc.h:580 it is defined without it. Solution: Change line 580 so that it reads friend DLLIMPORT std::ostream& operator<<(std::ostream&, const LaGenMatComplex&); I've changed this in CVS, so if you simply make a "cvs update" in your existing copy from CVS, then you will get this change already. Christian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQCVAwUBROXX8WXAi+BfhivFAQJUkQP/a+u+MTkX+lHjk3eLd6KOYT/EKimNiXaZ EcDA0IsN5lGJM2DWF3RZrH8LVDQsg3DLiSaTFFJSN5p/GcPym/Uu4WEC3BGxso70 FR1LSizTyGlvdx8K7/1tvaE+HqEV1bqm/LT5XfJa4eTmrqEY/8uozRzG6UMsYxTk Jb4mB8+eJhM= =yk1S -----END PGP SIGNATURE----- |