Why am I getting this compiler error:
List.h:56: error: ‘MAX_STARTS’ was not declared in this scope
CListItem m_arrayStarts[MAX_STARTS];
I have clearly defined MAX_STARTS in programstation.h
And I have included programstation.h in list.h
Tjhis has got to be another red herring where the compiler is not accurately detailing what the real problem is.
So why can’t the compiler see MAX_STARTS
#ifndef __PROGRAM_STATION_H_
#define __PROGRAM_STATION_H_
#include "DateTime.h"
#include "Common.h"
#include "ProgramStart.h"
#include "TextFile.h"
#include "WifiManager.h"
#include "List.h"
#include "CString.h"
#include "Timer.h"
#include <avr/pgmspace.h>
const uint8_t MAX_STARTS = 12;
#ifndef __LIST_H_
#define __LIST_H_
#include "ProgramStation.h"
List.h (1.11 KB)
ProgramStation.h (2.16 KB)