You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get a weird compile-error with self-written classes when i declare a function that returns a pointer to that very class. Can't figure out why.
UECIDE 0.8.7z36 compiles the example-code (ardubug.ino) without any errors though.
Using: Windows7-64bit, Arduino-IDE 1.6.1, Arduino Nano, ATmega328 ( Same problem for all other platines / prozessors, too )
--- Arduino-IDE - Error-Output:
ardubug.ino:2:1: error: 'MyClass' does not name a type
Fehler beim Kompilieren.
--- Code:
class MyClass{
public:
MyClass();
int value;
};
Hi
this is an issue with the current preprocessor. There is an experimental build that fixes your issue: you may want to give it a try. See #2729 (bottom of the page). This build is not perfect, but works with most simple sketches
I get a weird compile-error with self-written classes when i declare a function that returns a pointer to that very class. Can't figure out why.
UECIDE 0.8.7z36 compiles the example-code (ardubug.ino) without any errors though.
Using: Windows7-64bit, Arduino-IDE 1.6.1, Arduino Nano, ATmega328 ( Same problem for all other platines / prozessors, too )
--- Arduino-IDE - Error-Output:
ardubug.ino:2:1: error: 'MyClass' does not name a type
Fehler beim Kompilieren.
--- Code:
class MyClass{
public:
MyClass();
int value;
};
MyClass::MyClass(){
this->value = 101;
}
MyClass* someProcedure(){
return NULL;
}
void setup() {}
void loop() {}
The text was updated successfully, but these errors were encountered: