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
Hot Topic (More than 8 Replies) servo.h not found (Read 16705 times)
Steve15
Junior Member
**
Offline


Posts: 16
Location: chicago
Joined: Dec 21st, 2012
servo.h not found
Mar 2nd, 2014 at 2:47am
Print Post  
hi im trying to include <Servo.h> but it seems like visual studio doesn't find it because when I define object of type servo, it says undefined
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: servo.h not found
Reply #1 - Mar 2nd, 2014 at 3:08am
Print Post  
Hi Steve

Which version of Arduino are you using? 

Which version of Visual Studio?

What happens if you right click <Servo.h> and select "Open Document 'Servo.h'"?

Is it the compile that is failing or only the intellisense?

Does Servo appear on the "Project>add/import sketch library" menu?

Thanks
  
Back to top
IP Logged
 
Steve15
Junior Member
**
Offline


Posts: 16
Location: chicago
Joined: Dec 21st, 2012
Re: servo.h not found
Reply #2 - Mar 2nd, 2014 at 3:18am
Print Post  
arduino version 1.5

visual studio 2013

when try open document it says "file 'servo.h' not found in current source file's directory or in build system paths.

Compiling 'x' for 'Arduino Micro'
x.ino:9: error: 'Servo' does not name a type
x.ino:In function 'void setup()'
x.ino:21: error: 'RCservo' was not declared in this scope
x.ino:In function 'void loop()'
x.ino:42: error: 'RCservo' was not declared in this scope
Error compiling

under project add/import sketch library core 

#include <Wire.h>
#include <SPI.h>
#include <SoftwareSerial.h>
#include <EEPROM.h>
#include <VM_Boards.h>

a lot of the libraries that are in the installation directory are not there

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: servo.h not found
Reply #3 - Mar 2nd, 2014 at 3:21am
Print Post  
Which Arduino version are you using?
  
Back to top
IP Logged
 
Steve15
Junior Member
**
Offline


Posts: 16
Location: chicago
Joined: Dec 21st, 2012
Re: servo.h not found
Reply #4 - Mar 2nd, 2014 at 3:22am
Print Post  
1.5
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: servo.h not found
Reply #5 - Mar 2nd, 2014 at 3:23am
Print Post  
1.5 is a few different versions the last digit is important please
  
Back to top
IP Logged
 
Steve15
Junior Member
**
Offline


Posts: 16
Location: chicago
Joined: Dec 21st, 2012
Re: servo.h not found
Reply #6 - Mar 2nd, 2014 at 3:25am
Print Post  
oh sorry this is the one I installed 

1.5.6-r2 BETA
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: servo.h not found
Reply #7 - Mar 2nd, 2014 at 3:29am
Print Post  
Hi,

Arduino have only just released that beta and made a big library change. We will release an update over the next week or so.

You will see a note at the top of the home page. It's always worth checking the home page if you want to grab a beta.

On the Arduino downloads page is a link to previous versions. Grab the 1.5.5 or earlier from there.

One other question, where did you see this? #include <VM_Boards.h>

Thanks
  
Back to top
IP Logged
 
Steve15
Junior Member
**
Offline


Posts: 16
Location: chicago
Joined: Dec 21st, 2012
Re: servo.h not found
Reply #8 - Mar 2nd, 2014 at 3:37am
Print Post  
oh ok ill install older version sorry I don't understand the question?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: servo.h not found
Reply #9 - Mar 2nd, 2014 at 3:39am
Print Post  
You said this
Quote:
under project add/import sketch library core 

#include <Wire.h>
#include <SPI.h>
#include <SoftwareSerial.h>
#include <EEPROM.h>
#include <VM_Boards.h>


Are you saying you can see VM_Boards.h on the project menu item or in the sketch code?
  
Back to top
IP Logged
 
Steve15
Junior Member
**
Offline


Posts: 16
Location: chicago
Joined: Dec 21st, 2012
Re: servo.h not found
Reply #10 - Mar 2nd, 2014 at 3:43am
Print Post  
those were under project--> add/import sketch library--> core
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: servo.h not found
Reply #11 - Mar 2nd, 2014 at 3:45am
Print Post  
ok thanks. if you see the vm_boards one again after you install 1.5.5 please let me know
  
Back to top
IP Logged
 
Steve15
Junior Member
**
Offline


Posts: 16
Location: chicago
Joined: Dec 21st, 2012
Re: servo.h not found
Reply #12 - Mar 2nd, 2014 at 3:53am
Print Post  
I installed 1.0.5 because that's the only one I found on their website. #include <VM_Boards.h> is no longer there. and that solved the servo.h problem but now I get this 

Compiling 'x' for 'Arduino Micro'
Binary sketch size: 8842 bytes (used 31% of a 28672 byte maximum) (0.22 secs)
'Upload Using' requires a programmer. Upload cancelled

im searching to see if other have the same problem, I was just wonder if you have seen that before?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: servo.h not found
Reply #13 - Mar 2nd, 2014 at 4:33am
Print Post  
Yes you will find a few posts that report this upload problem

This means you ticked the "tools>visual micro>upload using programmer' menu item by mistake. Untick for normal usb/serial upload
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint