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 visual studio 13 (visual macro) don't include arduino libraries (Read 2488 times)
Anklon
Newbies
*
Offline


Posts: 2
Joined: Oct 28th, 2015
visual studio 13 (visual macro) don't include arduino libraries
Nov 29th, 2015 at 10:02am
Print Post  
I use " visual micro " add ones in Visual Studio 13 for arduino. Normally it works fine.But for my project I had to download this two library file , "Adafruit_SSD1306" & "Adafruit_GFX" . Arduino IDE works fine but visual studio can't include them. Even it can't include "Wire.h" but perfectly include "SPI.h" header where both of them are in same directory.I include those files directories in project properties. But when I run "Build" it gives fatal error and terminate compilation .Same error occurs for remaining two include files.

Can any one point me out any mistakes that I made or suggest any way to solve this problem?

Thanks you for your time.
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: visual studio 13 (visual macro) don't include arduino libraries
Reply #1 - Nov 29th, 2015 at 12:45pm
Print Post  
Hi,

If you look at your code you have correct syntax for spi.h but the other library includes do not have any space between the #include and the <lib.h>

You should use the "add library" menu to insert libraries so that you do not make mistakes Smiley

Please add a space like this which is GOOD

Code
Select All
#include <Wire.h> 



not this which is BAD

Code
Select All
#include<Wire.h> 

  
Back to top
WWW  
IP Logged
 
Anklon
Newbies
*
Offline


Posts: 2
Joined: Oct 28th, 2015
Re: visual studio 13 (visual macro) don't include arduino libraries
Reply #2 - Nov 29th, 2015 at 10:15pm
Print Post  
Thanks a lot Cheesy
I'm so silly :3
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint