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 Includes needs to be also in the .ino (Read 2651 times)
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Includes needs to be also in the .ino
Nov 6th, 2015 at 5:58pm
Print Post  
Hi,

sorry if the question has already been submitted.

Say Class OneClass needs to use library module OneLib. In OneClass.cpp the is an include for OneLib.h.

What we found out is if an include for OneLib.h is not also in the .ino file, the compiler complaints.

Why is it so ?

Thanks

Gilles Plante
« Last Edit: Nov 6th, 2015 at 5:59pm by Gilles Plante »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Includes needs to be also in the .ino
Reply #1 - Nov 6th, 2015 at 6:52pm
Print Post  
Hi Gilles,

Yes that is right. This is how Arduino has always worked.

However you will read in the what's new that I have still to implement the new ctags discovery system launched this week in Arduino 1.6.6

I expect this to happen over the next week or so and it might well avoid the need for libs to be declared in the .ino file.
  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Includes needs to be also in the .ino
Reply #2 - Nov 6th, 2015 at 10:03pm
Print Post  
Thanks Tim.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint