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 IntelliSense: cannot open source file "Servo.h" (Read 5670 times)
Bob Jones
Full Member
***
Offline


Posts: 210
Location: Bellingham, WA
Joined: Dec 4th, 2015
IntelliSense: cannot open source file "Servo.h"
Dec 6th, 2015 at 11:47pm
Print Post  
I am converting libraries from the Arduino IDE to VS/VM, but hitting compile problems:  IntelliSense: cannot open source file "Servo.h"

I created a separate solution using only the "Sweep.ino" example from the Servo library examples and it compiled easily, so it doesn't feel like an overall problem... instead I suspect there is something in my configuration that is off.

Some critical data:
1) #include <Servo.h> resides only in the Detector.h file that depends on it.
2) Servo.h shows up in the External Dependencies folder
3) "fatal error: Servo.h: No such file or directory" occurs twice in the Error List (these are the only compile errors), and references lines  13 and 12.
4) The include statement occurs on line 12, immediately below the line "#include <Arduino.h>". 
5) Line 13 is empty. (See attached screen shots)

I have tried cleaning and rebuilding the solution without effect.

If I put the include statements into the sketch file, I get 1 error (ld returned 1 exit status collect2.exe) and 280 warnings.

Please advise...
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: IntelliSense: cannot open source file "Servo.h"
Reply #1 - Dec 7th, 2015 at 11:47am
Print Post  
You need to #include <servo.h> in your master sketch.ino. Click save after doing that.
« Last Edit: Dec 7th, 2015 at 11:48am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint