Re: Errors during VS compilation

Probablya a missing include. Could you try adding
#include "dof.h"
into dssmatrix.C ?

Re: Errors during VS compilation

Yes, all fine now.

Re: Errors during VS compilation

Although this topic is a few years old now, I have managed to experience the same sort of problems when tried to build the solution wth VS2017. The fixes proposed in the previous answers work for classes but, for some reason, they don't work for structs (the reason might be that something has been changed on VS2017 compiler compared with the previous versions). When I try to build the latest code from the development branch, I encounter problem with the LoadBalancer class saying "attempting to reference a deleted function" in xutility. Traced back to loadbalancer I create a custom copy ctor and everything works. The similar error happens for modeStruct:

Severity    Code    Description    Project    File    Line    Suppression State
Error    C2280    'oofem::modeStruct &oofem::modeStruct::operator =(const oofem::modeStruct &)': attempting to reference a deleted function    core    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xutility    2414   

When I try to apply the same solution (create copy ctor) on modeStruct structure, I get the following errors:

Severity    Code    Description    Project    File    Line    Suppression State
Error    C2512    'oofem::modeStruct': no appropriate default constructor available    core    C:\git\oofem\src\oofemlib\solutionbasedshapefunction.C    409   

Severity    Code    Description    Project    File    Line    Suppression State
Error    C2280    'oofem::modeStruct &oofem::modeStruct::operator =(const oofem::modeStruct &)': attempting to reference a deleted function    core    C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\xutility    2414   

I don't understand if the default constructor is missing for modeStruct or for an object inside the modeStruct (e.g. SurfaceDataStruct). However, by defining a default constructor for any of the two, I haven't managed to solve the problem.

Any help would be much appreciated...

Marin

P.S.
For the matter of completeness, I post two additional errors that occur simultaneously with the previous ones:

Severity    Code    Description    Project    File    Line    Suppression State
Error    LNK1104    cannot open file 'C:\git\oofem\src\oofemlib\core.dir\Debug\solutionbasedshapefunction.obj'    liboofem    C:\git\oofem\LINK    1   

Severity    Code    Description    Project    File    Line    Suppression State
Error    LNK1104    cannot open file 'Debug\oofem.lib'    oofem    C:\git\oofem\LINK    1

29

Re: Errors during VS compilation

Hello, I just committed a series of patches that enable compilation on Visual C++ 2017 (serial version with no external modules for now).
Borek

Re: Errors during VS compilation

bp wrote:

Hello, I just committed a series of patches that enable compilation on Visual C++ 2017 (serial version with no external modules for now).
Borek

Thanks! It all works well now.