Error when compiling custom class
Posted: 14 Oct 2020 15:00
Hi, i've build some customs classes for my project but i've a problem when compiling the sketch. All have the same error... This classes work on a standard Arduino MEGA.
The error is : Alarme_ucxx.c:584: syntax error: token -> '}' ; column 1
Alarme is my custom Class.
Here is the code in Alarm_uccss.c where error is.
and the Alarm.h file, i removed all lines, but error still here !
and the Alarme.cpp, empty too but error always here
Any idea of why i've this error ? I don't really understand... I rewrote three times the code without copy past without succsess
The error is : Alarme_ucxx.c:584: syntax error: token -> '}' ; column 1
Alarme is my custom Class.
Here is the code in Alarm_uccss.c where error is.
Code: Select all
//class Alarme DECLARATION
//--------------------------------------------------------------------------------
typedef struct cxx__class__Alarme_s
{
}cxx__class__Alarme;
//--------------------------------------------------------------------------------
Code: Select all
#pragma once
// Alarme.h
#include "Arduino.h"
class Alarme {
};
Code: Select all
#include "Alarme.h"
Alarme::Alarme()
{
}