compile error


I've been trying to compile CPU version in Windows. I can't open the solution file under src/VS, it tells me that it could't find CUDA 9.2.props. Following the suggestion in, I tried to use Cmake, it creates DualSPHysics4.4CPU project file, when I open it in VS2015 and try to build I get 101 error messages saying

Error LNK2019 unresolved external symbol "public: static struct JFormatFiles2::StrShapeData cdecl JFormatFiles2::DefineShape_Quad(struct tfloat3 const &,struct tfloat3 const &,float,int,float)" (?DefineShape_Quad@JFormatFiles2@@SA?AUStrShapeData@1@ABUtfloat3@@0MHM@Z) referenced in function "private: void thiscall JDamping::SaveVtkConfig(double)const " (?SaveVtkConfig@JDamping@@ABEXN@Z) DualSPHysics4.4CPU C:\Users\He\Desktop\DualSPHysics_v4.4\src\source\build\JDamping.obj 1

How can I complie it? Thank you.


  • it seems like something wrong with environment variables. A simple stupid method, you can build a new project in VS, include all files except GPU.

  • The updated version for CPU calcultions is available on github.

Sign In or Register to comment.