Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Compile error when referencing public parent class (Read 1200 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Compile error when referencing public parent class
Jul 31st, 2018 at 9:27pm
Print Post  
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...
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error when referencing public parent class
Reply #1 - Jul 31st, 2018 at 9:49pm
Print Post  
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 TopicPrint