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 Include file not found (Read 2631 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Include file not found
Apr 8th, 2018 at 7:52pm
Print Post  
My sketch (Dashboard) references a class (Commands) which includes a file (Robot.h) which is located in the same folder as Dashboard. The Commands class is in the libraries folder as a reusable class.

I have another sketch (CommandHandler) which also uses Commands and its own version of Robot.h which is located in the CommandHandler folder.

The purpose of this structure is to allow creation of multiple sketches that each consume a custom version of Robot.h.

CommandHandler finds its version of Robot.h, but Dashboard doesn't:

Dashboard.ino:41: In file included from
 
Commands.h: 13:19: fatal error: Robot.h: No such file or directory
   #include <Robot.h>
   compilation terminated
Debug build failed for project 'Dashboard'

I have seen a similar problem when I create a new class which often has problems finding "arduino.h" so there is something slightly wonky about the way that VM handles finding include files.

I have tried cleaning the solution (Build->Clean Solution), and deleting all files in the corresponding TEMP_BUILD_FOLDER, but haven't been able to spot a repeatable solution to these problems.

The compile output is attached.

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
Re: Include file not found
Reply #1 - Apr 8th, 2018 at 9:34pm
Print Post  
I produced a simple example of this problem here:
http://forum.arduino.cc/index.php?topic=540303.0
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12155
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Include file not found
Reply #2 - Apr 8th, 2018 at 9:38pm
Print Post  
The arduino forum is nothing to do with visual micro Smiley

Does it work in the arduino ide?
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint