Detailed description |
|
Function is used explicitly in ExternalForce.h (search for ArrayPts<Function>), and so a forward declaration is not sufficient; "Function.h" must be #included.
The only reason why this is never an issue for people is because "Function.h" is just likely #included by some other class before "ExternalForce.h" is #included. In my case, "Function.h" was not #included (I didn't simply #include <OpenSim/OpenSim.h>, I only included the headers I needed for my project). So, I ran into an issue when "ExternalForce.h" was #included.
Solution: add #include "Function.h" to ExternalForce.h, and remove the forward declaration of Function. |
|