В функции
'__static_initialization_and_destruction_0':
home/user/main.cpp:50: неопределенная
ссылка на
'PhysEng2D::PhysEng2D(void)'
Единственный код в строке 50 —
Код: Выделить всё
PhysEng2D Physics;
Код: Выделить всё
#ifndef _PHYSENG2D_H_
#define _PHYSENG2D_H_
#include "primitives.h"
class PhysEng2D
{
public:
PhysEng2D::PhysEng2D();
PhysEng2D::~PhysEng2D();
bool IsBoundingBoxCollision(PS2Sprite & S1, PS2Sprite & S2);
bool IsWallCollision(PS2Sprite & S);
};
#endif
Код: Выделить всё
#include "primitives.h"
#include "physeng2d.h"
PhysEng2D::PhysEng2D()
{
//Nothing to Initialise
}
PhysEng2D::~PhysEng2D()
{
//Nothing to clean up
}
Извините, я понимаю, что, вероятно, это очень глупая маленькая ошибка, которую я допускаю.
Подробнее здесь: https://stackoverflow.com/questions/593 ... error-in-c
Мобильная версия