Topic: DSS solver fails to build on Windows/MSVC

Hi,

I’m trying to enable the DSS linear solver in OOFEM on Windows using Visual Studio 2022.
I have Cloned upstream OOFEM (https://github.com/oofem/oofem.git) and Configured with CMake:
cmake -S . -B build-vs -G "Visual Studio 17 2022" -DUSE_DSS=ON
After I tried to built target liboofem in Release or Debug.

The build always fails with the same 10 linker errors, for example:
dssmatrix.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl oofem::DSSMatrix::canBeFactorized(v
oid)const " (?canBeFactorized@DSSMatrix@oofem@@UEBA_NXZ)
dssmatrix.obj : error LNK2001: unresolved external symbol "public: virtual enum oofem::SparseMtrxType __cdecl oofem::DSSMat
rix::giveType(void)const " (?giveType@DSSMatrix@oofem@@UEBA?AW4SparseMtrxType@2@XZ)
dssmatrix.obj : error LNK2001: unresolved external symbol "public: virtual bool __cdecl oofem::DSSMatrix::isAsymmetric(void
)const " (?isAsymmetric@DSSMatrix@oofem@@UEBA_NXZ)


and similar errors for DSSSolver.
Is DSS expected to work on Windows/MSVC in the current version?
Is there a known patch or branch where DSS is maintained?

Thank you

2

Re: DSS solver fails to build on Windows/MSVC

Hi,
thank you for reporting this. I have just committed a fix, that should resolve the issue. Please do git pull, cmake & build.
Borek

Re: DSS solver fails to build on Windows/MSVC

Thank you very much Borek!!!
It's working now.
Christos