VS Arduino
>> >> Warnings for SD.h / SPI.h and F / progmem
https://www.visualmicro.com/forums/YaBB.pl?num=1489935094

Message started by michel_keijzers on Mar 19th, 2017 at 2:51pm

Title: Warnings for SD.h / SPI.h and F / progmem
Post by michel_keijzers on 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?

Title: Re: Warnings for SD.h / SPI.h and F / progmem
Post by Visual Micro on 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


Title: Re: Warnings for SD.h / SPI.h and F / progmem
Post by michel_keijzers on 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.


Title: Re: Warnings for SD.h / SPI.h and F / progmem
Post by Visual Micro on Mar 19th, 2017 at 9:49pm
Great, thanks for the update

Title: Re: Warnings for SD.h / SPI.h and F / progmem
Post by Evgeny Zhekaus on Oct 9th, 2019 at 8: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


Title: Re: Warnings for SD.h / SPI.h and F / progmem
Post by Visual Micro on Oct 10th, 2019 at 10:05am
When you have a problem please follow the guide in yellow above

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.