Must be something missing.
this what I have in my vars.h file.
//globals and dims //
extern int moon [];
extern int moonpic;
extern int WeatherBanner;
extern int Temp_Gauge;
extern int North_0;
extern int NNE_1;
extern int NE_2;
extern int ENE_3;
extern int E_4;
extern int ESE_5;
extern int SE_6;
extern int SSE_7;
extern int S_8;
extern int SSW_9;
extern int SW_10;
extern int WSW_11;
extern int W_12;
extern int WNW_13;
extern int NW_14;
extern int NNW_15;
and this is what I have in the vars.cpp file
#include "vars.h"
moon [30];
moonpic;
WeatherBanner = 1;
Temp_Gauge = 2;
North_0 = 3;
NNE_1 = 4;
NE_2 = 5;
ENE_3 = 6;
E_4 = 7;
ESE_5 = 8;
SE_6 = 9;
SSE_7 = 10;
S_8 = 11;
SSW_9 = 12;
SW_10 = 13;
WSW_11 = 14;
W_12 = 15;
WNW_13 = 16;
NW_14 = 17;
NNW_15 = 18;
comes back with this error
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
and if I have const int infront of them like so
int moon [30];
int moonpic;
const int WeatherBanner = 1;
const int Temp_Gauge = 2;
const int North_0 = 3;
const int NNE_1 = 4;
const int NE_2 = 5;
const int ENE_3 = 6;
const int E_4 = 7;
const int ESE_5 = 8;
const int SE_6 = 9;
const int SSE_7 = 10;
const int S_8 = 11;
const int SSW_9 = 12;
const int SW_10 = 13;
const int WSW_11 = 14;
const int W_12 = 15;
const int WNW_13 = 16;
const int NW_14 = 17;
const int NNW_15 = 18;
it returns the error
loadpictures.obj : error LNK2001: unresolved external symbol "int NNW_15" (?NNW_15@@3HA)
Dark Physics makes any hot drink go cold.