Error when including "DCPSE/DCPSE_op/DCPSE_op.hpp"
When including DCPSE_op.hpp (into an otherwise more or less empty main), I get the following compilation error:
In file included from /Users/jstark/Desktop/diffusion/zebrafish/validation_methodOfImages/main.cpp:23: /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:679:18: error: unknown type name 'support_options'; did you mean 'mach_port_options'? support_options opt = support_options::N_PARTICLES) { ^~~~~~~~~~~~~~~ mach_port_options /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach/port.h:349:16: note: 'mach_port_options' declared here typedef struct mach_port_options { ^ In file included from /Users/jstark/Desktop/diffusion/zebrafish/validation_methodOfImages/main.cpp:23: /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:694:45: error: use of undeclared identifier 'Dcpse' vector_dist_expression_op<operand_type, Dcpse<operand_type::vtype::dims, typename operand_type::vtype>, VECT_DCPSE> ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:694:107: error: expected member name or ';' after declaration specifiers vector_dist_expression_op<operand_type, Dcpse<operand_type::vtype::dims, typename operand_type::vtype>, VECT_DCPSE> ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:679:40: error: use of undeclared identifier 'support_options'; did you mean 'mach_port_options'? support_options opt = support_options::N_PARTICLES) { ^~~~~~~~~~~~~~~ mach_port_options /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach/port.h:349:16: note: 'mach_port_options' declared here typedef struct mach_port_options { ^ In file included from /Users/jstark/Desktop/diffusion/zebrafish/validation_methodOfImages/main.cpp:23: /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:679:57: error: no member named 'N_PARTICLES' in 'mach_port_options' support_options opt = support_options::N_PARTICLES) { ~~~~~~~~~~~~~~~~~^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:684:21: error: no template named 'Dcpse' dcpse = new Dcpse<particles_type::dims, particles_type>(parts, p, ord, rCut, oversampling_factor, opt); ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:690:43: error: expected ')' delete (Dcpse<particles_type::dims, particles_type> *) dcpse; ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:690:16: note: to match this '(' delete (Dcpse<particles_type::dims, particles_type> *) dcpse; ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:690:63: error: expected ';' after expression delete (Dcpse<particles_type::dims, particles_type> *) dcpse; ^ ; /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:690:17: error: use of undeclared identifier 'Dcpse'; did you mean 'dcpse'? delete (Dcpse<particles_type::dims, particles_type> *) dcpse; ^~~~~ dcpse /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:661:11: note: 'dcpse' declared here void *dcpse; ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:690:64: warning: expression result unused [-Wunused-value] delete (Dcpse<particles_type::dims, particles_type> *) dcpse; ^~~~~ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:769:18: error: unknown type name 'support_options'; did you mean 'mach_port_options'? support_options opt = support_options::N_PARTICLES) { ^~~~~~~~~~~~~~~ mach_port_options /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach/port.h:349:16: note: 'mach_port_options' declared here typedef struct mach_port_options { ^ In file included from /Users/jstark/Desktop/diffusion/zebrafish/validation_methodOfImages/main.cpp:23: /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:790:45: error: use of undeclared identifier 'Dcpse' vector_dist_expression_op<operand_type, Dcpse<operand_type::vtype::dims, typename operand_type::vtype>, VECT_DCPSE> ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:790:107: error: expected member name or ';' after declaration specifiers vector_dist_expression_op<operand_type, Dcpse<operand_type::vtype::dims, typename operand_type::vtype>, VECT_DCPSE> ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:769:40: error: use of undeclared identifier 'support_options'; did you mean 'mach_port_options'? support_options opt = support_options::N_PARTICLES) { ^~~~~~~~~~~~~~~ mach_port_options /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach/port.h:349:16: note: 'mach_port_options' declared here typedef struct mach_port_options { ^ In file included from /Users/jstark/Desktop/diffusion/zebrafish/validation_methodOfImages/main.cpp:23: /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:769:57: error: no member named 'N_PARTICLES' in 'mach_port_options' support_options opt = support_options::N_PARTICLES) { ~~~~~~~~~~~~~~~~~^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:774:21: error: no template named 'Dcpse' dcpse = new Dcpse<particles_type::dims, particles_type>(parts, p, ord, rCut, oversampling_factor, opt); ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:776:9: error: use of undeclared identifier 'Dcpse'; did you mean 'dcpse'? Dcpse<particles_type::dims, particles_type> *dcpse_ptr = (Dcpse<particles_type::dims, particles_type> *) dcpse; ^~~~~ dcpse /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:750:11: note: 'dcpse' declared here void *dcpse; ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:776:9: error: 'dcpse' does not name a template but is followed by template arguments Dcpse<particles_type::dims, particles_type> *dcpse_ptr = (Dcpse<particles_type::dims, particles_type> *) dcpse; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:750:11: note: non-template declaration found by name lookup void *dcpse; ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:778:13: error: use of undeclared identifier 'dcpse_ptr' new(dcpse_ptr) Dcpse<particles_type::dims, particles_type>(parts, p, ord, rCut, oversampling_factor, opt); ^ /Users/jstark/OpenFPM_install_dev/openfpm_numerics/include/DCPSE/DCPSE_op/DCPSE_op.hpp:779:9: error: use of undeclared identifier 'dcpse_ptr' dcpse_ptr++; ^ fatal error: too many errors emitted, stopping now [-ferror-limit=]