Hi Guys,
I'm really stuck here and in desperate need of help. I've taken just about all my code out to make the problem as clear as possible. This compiles in Visual Studio but not in the sdk. I've installed the sdk on an old XP machine without any difference and the sdk is installed on a ram disk with admin rights.
globals.h
#ifndef GLOBALS_H
#define GLOBALS_H
typedef struct menu {
unsigned char type;
int * noitems;
unsigned char * lines[5];
int * tomenus;
int exitmenu;
};
struct menu * menus[6];
#endif
functions.h
#include "fxlib.h"
#include "dispbios.h"
#include "keybios.h"
#include "globals.h"
functions.c
#include "functions.h"
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
int pos[21] = {30,30,10,25,20,5,45,30,15,0,0,10,20,30,40,54,36,27,18,9,0};
int at[6] = {0,1,3,6,10,15};
#endif
mathsanswers.h
#include "functions.h"
mathsanswers.c
#include "mathsanswers.h"
int AddIn_main(int isAppli, unsigned short OptionNum) {
}
#pragma section _BR_Size
unsigned long BR_Size;
#pragma section
#pragma section _TOP
int InitializeSystem(int isAppli, unsigned short OptionNum)
{
return INIT_ADDIN_APPLICATION(isAppli, OptionNum);
}
#pragma section
The compiler complaint is:
** L2300 (E) Duplicate symbol "_menus" in "C:\Users\Paul Brassington\Documents\CASIO\fx-9860G SDK\learn\mathsanswers\Debug\functions.obj"
Please help as I'm totally stuck with this.
Paul