Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Compile error when referencing public parent class (Read 406 times)
Bob Jones
Full Member
***
Offline



Posts: 207
Bellingham, WA
Compile error when referencing public parent class
Jul 31st, 2018 at 10: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...
Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Online



Posts: 10529
United Kingdom
Re: Compile error when referencing public parent class
Reply #1 - Jul 31st, 2018 at 10: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
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print