Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Warnings for SD.h / SPI.h and F / progmem (Read 2074 times)
michel_keijzers
Newbies
*
Offline



Posts: 2
Warnings for SD.h / SPI.h and F / progmem
Mar 19th, 2017 at 2:51pm
 
I have various warnings or actually errors showing in VisualMicro (Visual Studio 2015) which I can see when I hover over the red line fragments, but still the program compiles OK.

It is just very annoying to see the red marks under the lines containing the problem.

For example:

#include <SD.h>
#include <SPI.h>

In this case SD.h and SPI.h are red, hovering over them shows: Cannot find file pattern in ... (bunch of folders)

And

Serial.println(F("MIDI TOOLS"));

Shows: cannot resolve symbol 'progmem'

How can I get rid of these warnings/errors?
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10623
United Kingdom
Re: Warnings for SD.h / SPI.h and F / progmem
Reply #1 - Mar 19th, 2017 at 6:18pm
 
Hi,

Please switch on vmicro>compiler>verbose and also the "show build properties" setting. the build and copy the output into a .txt file. Then email it (with a link to this post) or post the output here.

Please also install the latest visual micro from here

Thanks

Back to top
 
WWW  
IP Logged
 
michel_keijzers
Newbies
*
Offline



Posts: 2
Re: Warnings for SD.h / SPI.h and F / progmem
Reply #2 - Mar 19th, 2017 at 8:54pm
 
Thank you very much for your fast reply.

I restarted VS and now everything seems ok.
Sorry for the inconvenience of the time spent answering.

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



Posts: 10623
United Kingdom
Re: Warnings for SD.h / SPI.h and F / progmem
Reply #3 - Mar 19th, 2017 at 9:49pm
 
Great, thanks for the update
Back to top
 
WWW  
IP Logged
 
Evgeny Zhekaus
Junior Member
**
Offline



Posts: 26
Re: Warnings for SD.h / SPI.h and F / progmem
Reply #4 - Oct 9th, 2019 at 9:11pm
 
If project is opened from UNC path, I see the same warning around `F` macro. There is no warning if I open locally.

P.S. VS 2019 16.3.3

Back to top
 
WWW  
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10623
United Kingdom
Re: Warnings for SD.h / SPI.h and F / progmem
Reply #5 - Oct 10th, 2019 at 11:05am
 
When you have a problem please follow the guide in yellow above
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print