I've just begun putting C++ code into my project and it does not compile.
I've simplified it as much as possible so you nice guys could help me without having to read too much code.
#include "fxlib.h"
#include "Topic.h"
int AddIn_main(int isAppli, unsigned short OptionNum){
unsigned int key;
Topic topic;
locate(2, 5);
Print((unsigned char*) "What next");
while(1){
GetKey(&key);
}
}
#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 sectionNext the class (Topic.h)
class Topic {
public:
int instruction_no;
protected:
};And Topic.c
#include "Topic.h"
Compiler error:
C:\Users\Paul Brassington\Documents\CASIO\fx-9860G SDK\input\input\Topic.h(1) : C2500 (E) Illegal token "Topic"
C:\Users\Paul Brassington\Documents\CASIO\fx-9860G SDK\input\input\Topic.h(1) : C2500 (E) Illegal token "{"
C:\Users\Paul Brassington\Documents\CASIO\fx-9860G SDK\input\input\input.c(7) : C2225 (E) Undeclared name "Topic"
C:\Users\Paul Brassington\Documents\CASIO\fx-9860G SDK\input\input\input.c(7) : C2500 (E) Illegal token "topic"
C:\Users\Paul Brassington\Documents\CASIO\fx-9860G SDK\input\input\input.c(7) : C2225 (E) Undeclared name "topic"It must be a simple mistake as the SDK does say it can compile C++ code.
Thanks in anticipation
Paul


