VS Arduino
Visual Micro >> General Board >> Compile error when referencing public parent class
https://www.visualmicro.com/forums/YaBB.pl?num=1533072430

Message started by Bob Jones on Jul 31st, 2018 at 9:27pm

Title: Compile error when referencing public parent class
Post by Bob Jones on Jul 31st, 2018 at 9:27pm
Tim,

I have been stuck on this problem for almost two weeks. I have written and rewritten this code and the attached is about as tight as I can get it.

The intention of this code is to support multiple getters (sources of information) and multiple putters (destinations for that information). Before I can support multiple getters and putters, I need my code to compile properly with a single instance of each. What I am encountering is "expected class-name before { token" error messages that I don't know how to get around.

All of the code is attached. Here is an example of what is failing:

class Controller {...}
class GenericGetter : public Controller {... <- COMPILE ERROR
class GenericPutter: public Controller {... < COMPILE ERROR
class Getter : public GenericGetter { ... < COMPILE ERROR
class Putter: public GenericPutter { ... < COMPILE ERROR

Please advise...
https://www.visualmicro.com/forums/YaBB.pl?action=downloadfile;file=RemoteController.zip ( 21 KB | 1 Download )

Title: Re: Compile error when referencing public parent class
Post by Visual Micro on Jul 31st, 2018 at 9:49pm
I am sorry but the price of the software does not allow me to provide coding assistance.

There are many forums for arduino code help.

If you find something that works in arduino ide but not in visual micro then I can try to help.

Thanks

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.