I'm making a math engine using c++ and I created 3 classes (vector, matrix and quaternion).When I compile my code using g++ I have an error and I don't know how to fixit, if someone can help me it would be appreciated.
Here is my vector.hpp code:
#include "matrix.hpp"
#include "quaternion.hpp"
#include <iostream>
#include <cmath>
namespace helix{
class vector{
public:
float x;
float y;
float z;
...
vector();
vector(float x, float y, float z);
vector(const vector& vec);
...
}
}
Here is my terminal output:
Undefined symbols for architecture x86_64:
"helix::vector::vector(float, float, float)", referenced from:
_main in main-efde0e.o
"helix::vector::~vector()", referenced from:
_main in main-efde0e.o
If you need more informations, ask me !]
[ You can access source code on my GitHub: https://github.com/miishuriinu/game_engine ]