I am not sure what to do with this one.
I am getting the error
c:/vsarm/armcc/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: build/main.o:U:\xxx\xxx\xxx/Src/LCD/..\local/en.h:76: multiple definition of `xMenu'; build/menu.o:U:\xxx\xxx\xxx/Src/LCD/..\local/en.h:76: first defined here
So the details are
local\en.h
Code:
#ifndef ___english_H
#define ___english_H
#inlcude "xxxx"
#define XMenu 6
#endif //___english_H
LCD\menu.h
Code:
#ifndef ___MENU_H
#define ___MENU_H
#include "..\local\en.h"
#endif //___MENU_H
LCD\menu.c
\main.c
Code:
#include "LCD/menu.h"
EDIT
Got it figured out I had an additional variable defined as well in the en.h file
local\en.h
Code:
#ifndef ___english_H
#define ___english_H
#inlcude "xxxx"
#define XMenu 6
#define X_MENU_ITEMS 11
#define X_WIDTH 10
char xMenu[X_MENU_ITEMS][X_MENU_WIDTH] = {
"one"
,"two"
,"three"
,"four"
,"5"
,"6"
,"7"
,"8"
,"9"
,"10"
,"11"
};
#endif //___english_H