Plugin Build incomplete type is not allowed
Posted: Mon Apr 23, 2018 2:24 pm
Hi everyone,
I am a new in C++, and trying to build a plugin in Visual Studio 2017.
In my code, the joint information is needed (see the below code), but errors occurred: incomplete type is not allowed.
const Joint& joint = _model->getJointSet().get(_jointReferences.getName());//this line is correct
simbodyIndex = joint.getBody().getIndex();// this line is wrong, incomplete type is not allowed.
I think my header has already included joint class:
#include <OpenSim/Simulation/Model/Model.h>
#include <OpenSim/Simulation/Model/ActivationFiberLengthMuscle.h>
#include <OpenSim/Simulation/Model/ForceSet.h>
#include <OpenSim/Simulation/SimbodyEngine/Coordinate.h>
#include <OpenSim/Simulation/SimbodyEngine/SimbodyEngine.h>
Does anyone can help figure it out?
Thanks,
Chaofei
I am a new in C++, and trying to build a plugin in Visual Studio 2017.
In my code, the joint information is needed (see the below code), but errors occurred: incomplete type is not allowed.
const Joint& joint = _model->getJointSet().get(_jointReferences.getName());//this line is correct
simbodyIndex = joint.getBody().getIndex();// this line is wrong, incomplete type is not allowed.
I think my header has already included joint class:
#include <OpenSim/Simulation/Model/Model.h>
#include <OpenSim/Simulation/Model/ActivationFiberLengthMuscle.h>
#include <OpenSim/Simulation/Model/ForceSet.h>
#include <OpenSim/Simulation/SimbodyEngine/Coordinate.h>
#include <OpenSim/Simulation/SimbodyEngine/SimbodyEngine.h>
Does anyone can help figure it out?
Thanks,
Chaofei