I am working on a school project and I am running into a linker error of 'unresolved external symbol' I have two files; math.h and math.cpp. I am trying to declare some arrays in the namespace in math.h, but I am getting linker error from this. In my math.h:
namespace domath
{
extern float alpha1[];
extern Vector ecth[];
}
In my math.cpp:
#include math.h
float alpha1[];
Vector ecth[];
What can I do to fix? I cannot assign a value like alpha1[] = {1}, because I do not know the value it will have. Thank very much in advance!!