Microsoft Visual Studio - 100% Arduino Compatibility. Producers vs Hackers!

I have found something interesting with this library if you use Verbose/Warnings settings.

This library causes 100's of warnings like the ones shown below. So many warnings cause it to take a few minutes to compile but it does compile okay.

If you have switched on "Verbose" or "Warnings" in the options I suggest that you switch them OFF again...

Tools>Options>Visual Micro>Compiler>Verbose = False
Tools>Options>Visual Micro>Compiler>Warnings = False

The example I tested, it does compile correctly. BUT, it produces so many warnings it looks like a bad error. but is not :slight_smile:

message.h : Warning: only initialized variables can be placed into program memory area
message.h : Warning: only initialized variables can be placed into program memory area
parsetools.h : pBuf will be initialized after nStage
parsetools.h : arLenCntdn will be initialized after arLen
confdescparser.h : : In member function 'void ConfigDescParser<CLASS_ID, SUBCLASS_ID, PROTOCOL_ID, MASK>::PrintHidDescriptor(const USB_HID_DESCRIPTOR*)':
confdescparser.h : Warning: only initialized variables can be placed into program memory area
confdescparser.h : Warning: only initialized variables can be placed into program memory area
confdescparser.h : Warning: only initialized variables can be placed into program memory area
..
..
..
Compile OK

NB: You will see the same output in the Arduino IDE if you switch on "ArduinoIDE>File>Preferences>Verbose". So this library is best used without these settings in both Visual Studio and the Arduino IDE