Vector 3 LNK 2001 error

Posts 1–4 of 4 · Page 1 of 1
Vector 3 LNK 2001 error
https: // gyazo . com / 9b8ce53b15934d48125bf42682b41857

Any reason why? I have vector delcared in a .h file.
Vector Code:
Code:
class Vector3
{
public:
	float x;
	float y;
	float z;

	Vector3();
	Vector3(float a, float b, float c);
};

Vector3::Vector3()
{
	x = 0;
	y = 0;
	z = 0;
}

Vector3::Vector3(float a, float b, float c)
{
	x = a;
	y = b;
	z = c;
}
Help would be appreciated.
The mistake is obvious, you're trying to call functions that don't exist.

VectorMultiplied, VectorDifference, VectorDistance and VectorMagnitude don't have definitions.
Quote Originally Posted by WasserEsser View Post
The mistake is obvious, you're trying to call functions that don't exist.

VectorMultiplied, VectorDifference, VectorDistance and VectorMagnitude don't have definitions.
Alright thank you so where do I declared them (noob question)
(playing around with source codes)
Been over a week since last update/bump after answers, assuming solved.

/Closed.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us