Код: Выделить всё
struct _declspec(dllexport) Vector3
{
float X;
float Y;
float Z;
static const Vector3 Zero;
static const Vector3 One;
static const Vector3 Up;
static const Vector3 Down;
static const Vector3 Left;
static const Vector3 Right;
static const Vector3 Forward;
static const Vector3 Back;
...
}
Код: Выделить всё
const Vector3 Vector3::Zero = Vector3(0.0f, 0.0f, 0.0f);
const Vector3 Vector3::One = Vector3(1.0f, 1.0f, 1.0f);
const Vector3 Vector3::Up = Vector3(0.0f, 1.0f, 0.0f);
const Vector3 Vector3::Down = Vector3(0.0f, -1.0f, 0.0f);
const Vector3 Vector3::Left = Vector3(-1.0f, 0.0f, 0.0f);
const Vector3 Vector3::Right = Vector3(1.0f, 0.0f, 0.0f);
const Vector3 Vector3::Forward = Vector3(0.0f, 0.0f, 1.0f);
const Vector3 Vector3::Back = Vector3(0.0f, 0.0f, -1.0f);
ошибка LNK2001: неразрешенный внешний символ "public: static struct
BS::Core::Math::Vector3 const BS::Core::Math::Vector3::Up"
(?Up@Vector3@Math@Core@BS@@2U1234@B)
Код: Выделить всё
dllexportПожалуйста, помогите!
Подробнее здесь: https://stackoverflow.com/questions/798 ... ker-errors
Мобильная версия