-->
Page 1 of 1

Errors with Visual Studio + Micro and ESP8266 Arduino

PostPosted: Thu Mar 22, 2018 8:58 am
by Auri
Hi,
I use the Arduino core as a great way to programm the ESP8266 for a couple of months now.
2 days ago, however, I was forced to update my Visual Studio 2017 Community to install new components (but I didn't yet).
After this update I noticed several errors in the error list of my currently open project. The errors emerge not from my code, but from the ArduinoIDE/framework from https://github.com/esp8266/Arduino.
One error in the file stl_bvector.h:
E0075 operand of '*' must be a pointer
at line 68 in V2.4.1:
Code: Select allenum { _S_word_bit = int(__CHAR_BIT__ * sizeof(_Bit_type)) };


and several errors in a file called "new" (with a couple of memory allocation definitions in it).
VS throws this error in the error list:
E0351 first parameter of allocation function must be of type 'size_t'
at lines 91, 93, 99, 101
e.g.
Code: Select allvoid* operator new(std::size_t) _GLIBCXX_THROW (std::bad_alloc)


I updated Visual Studio, Visual Micro as well as the Arduino core from V2.3.0 to 2.4.1
I cannot get rid of those error messages. However my project compiles fine and without errors from Visual Micro.
Do you have any ideas how to fix this issue?

Re: Errors with Visual Studio + Micro and ESP8266 Arduino

PostPosted: Thu Jul 05, 2018 10:08 pm
by jakabo27
I have the same problem - did you discover a solution?

Re: Errors with Visual Studio + Micro and ESP8266 Arduino

PostPosted: Mon Jul 09, 2018 11:31 am
by Auri
Hi, unfortunately I did not. But since these error dont seem to have any effect, I just hid them by switching the displayed error types from build + intellisense to build only.