I'm writing an application with C++ and OpenGL. In this header file, I just want to make an object from the ObstacleSConnection class in my ObstacleS class, but I get these three errors.
syntax error: missing ';' before
unexpected token(s) preceding ';'
missing type specifier - int assumed. Note: C++ does not support default-int
Since I'm new in c++ and I know my mistake is so simple, can you please help me.
ObstacleS.h
#pragma once
#pragma warning
class ObstacleS
{
public:
ObstacleS(cyclone::Vector3& p);
~ObstacleS();
ObstacleSConnection * sconnection; (error is here)
cyclone::Vector3 m_color;
cyclone::Particle* m_particle;
cyclone::ParticleForceRegistry* m_forces;
void update(float duration);
void draw(int shadow);
};
class ObstacleSConnection
{
public:
ImplicitEngine* _engine;
int MAX_CONTACTS = 5000;
int numStatics;
ObstacleSConnection(int n);
~ObstacleSConnection();
std::vector<cyclone::ParticleContactGenerator*> m_grounds;
cyclone::ParticleContactResolver* m_resolver;
std::vector<ObstacleS*> m_statics;
size_t addObstacle(const std::vector<cyclone::Vector3>& vertices);
std::vector<Obstacle*> obstacles_;
};