Hi,
I wrote an application for using it with an Arduino Ethernet.
If I used the following inheritance from an abstract class, the application is still working with Arduino IDE 1.8.5.
But VS2015 with VMicro 1805.25.0 shows the following behavior:
- no syntax errors
- no compiler errors
- application can be build and loaded
- connection to COM11 is established
-! No stopps or output from breakpoints
-! No serial output
(remember: Arduino IDE still works including serial outputs)
Is this an error of VMicro?
The 'important" lines of code:
sketch.ino
#include "prog1.h"
//...
prog1* mp1 = new prog1();
void setup() {
Serial.begin(115200);
//...
Serial.println("setup");
}
void loop()
{
//...
Serial.println("setup");
delay(1000);
}
progr1.cpp #include "prog1.h"
prog1::prog1(){}
prog1::~prog1(){}
void prog1::initP(struct CRGB* sled, logging_utils* slogs){}
progr1.h
#ifndef g_prog1
#define g_prog1
#include "aled_prog.h"
class prog1 : public aled_prog
{
public:
prog1();
~prog1();
void initP(struct CRGB* sled, logging_utils* slogs);
};
#endif
aled_prog.h #include "logging_utils.h"
#include "utils.h"
class aled_prog
{
public:
aled_prog();
~aled_prog();
virtual void initP(struct CRGB* sled, logging_utils* slogs) = 0;
};
aled_prog.h #include "aled_prog.h"
aled_prog::aled_prog(){}
aled_prog::~aled_prog(){}