Share 
Follow 
AboutDownloadsDocumentsForumsSource CodeIssuesNews
Date:
2013-08-31 01:41
Priority:
3
State:
Open
Submitted by:
Christopher Dembia (chrisdembia)
Assigned to:
Ajay Seth (aseth)
Summary:
ExternalForce only forward-declares Function, when Function.h must be #included.

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.

Add A Comment: Notepad

No Comments Have Been Posted

No Changes Have Been Made to This Item

Feedback