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 Warnings for SD.h / SPI.h and F / progmem (Read 3319 times)
michel_keijzers
Newbies
*
Offline


Posts: 2
Joined: Mar 19th, 2017
Warnings for SD.h / SPI.h and F / progmem
Mar 19th, 2017 at 2:51pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Warnings for SD.h / SPI.h and F / progmem
Reply #1 - Mar 19th, 2017 at 6:18pm
Print Post  
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
Joined: Mar 19th, 2017
Re: Warnings for SD.h / SPI.h and F / progmem
Reply #2 - Mar 19th, 2017 at 8:54pm
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


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


Posts: 37
Joined: Sep 19th, 2018
Re: Warnings for SD.h / SPI.h and F / progmem
Reply #4 - Oct 9th, 2019 at 8:11pm
Print Post  
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
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


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