Using a Class Method in Main

When I try:

MathFunctions::IntegrateRK(Object1, Object2, int)

I get:

Error: a nonstatic member reference must be relative to a specific object

I can declare Object1/2 as:

ObjectClass Object1 or ObjectClass *Object1 = new ObjectClass();

And I still get the same error. Why is this happening?
Topic archived. No new replies allowed.