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 Problem with HardwareSerial library for every compilations. (Read 4431 times)
paolo48
Junior Member
**
Offline


Posts: 69
Joined: Dec 22nd, 2015
Problem with HardwareSerial library for every compilations.
Apr 18th, 2016 at 11:00am
Print Post  
I worked well for almost 2 month and now .....
I can't compile any more!

I am using IDE 1.6.5 and V.M:1603.30.4.

Code
Select All
Every time, with any possible  source code I got this error:
Arduino.h:In file included from
WString.h:from
Print.h:from
Stream.h:from
Wire.h:from
RTClib.cpp:from
HardwareSerial.h:72:37: error: expected class-name before '{' token
 class HardwareSerial*:public Stream {
HardwareSerial.h:103:15: error: 'Print' has not been declared
         using Print*:write; \\ pull in write(str) and write(buf, size) from Print
HardwareSerial.h:85:13: error: 'int HardwareSerial::available()' marked override, but does not override
:int available(void) override
HardwareSerial.h:86:13: error: 'int HardwareSerial::peek()' marked override, but does not override
:int peek(void) override
HardwareSerial.h:87:13: error: 'int HardwareSerial::read()' marked override, but does not override
:int read(void) override
HardwareSerial.h:89:14: error: 'void HardwareSerial::flush()' marked override, but does not override
:void flush(void) override
HardwareSerial.h:90:16: error: 'size_t HardwareSerial::write(uint8_t)' marked override, but does not override
:size_t write(uint8_t) override
Arduino.h:In file included from
WString.h:from
Print.h:from
Stream.h:from
Wire.h:from
RTClib.cpp:from
Esp.h:126:27: error: 'Stream' has not been declared
:bool updateSketch(Stream& in, uint32_t size, bool restartOnFail = false, bool restartOnSuccess = true)
Arduino.h:In file included from
WString.h:from
Print.h:from
Stream.h:from
Wire.h:from
RTClib.cpp:from
Updater.h:44:24: error: 'Stream' has not been declared
:size_t writeStream(Stream &data)
Updater.h:61:21: error: 'Stream' has not been declared
:void printError(Stream &out)
Using library SSIDPASSWORD version 0.0.0 in folder d:\users\pbecc\onedrive\Arduino\libraries\SSIDPASSWORD
Using library Wire version 1.0 in folder c2\libraries\Wire
Using previously compiled file: demcuv2\Wire\Wire.cpp.o
Error compiling libraries 



I may have done somethink wrong......
I was working so well and now ...  I can't go back!

Arduino IDE compile faultless .......!

Paolo
« Last Edit: Apr 18th, 2016 at 2:33pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with HardwareSerial library for every compilations.
Reply #1 - Apr 18th, 2016 at 2:32pm
Print Post  
Questions:-

  • Does the problem still happen when the toolbar is set to "Release" instead of "Debug/Local windows debugger"?
  • Have you recently updated the esp core or libraries that you are using?
  • Have you just started to use the RTClib.cpp lib or was it always included when the compile was working okay?


Info that might help in emergencies

You can enable File>Prefrences>External Editor in the Arduino Ide. Then open the same project in both Visual Micro and Arduino Ide. The Arduino Ide will re-read the project when yo click upload which means you can develop in visual micro and upload using arduino quite easily. 


« Last Edit: Apr 18th, 2016 at 2:32pm by Tim@Visual Micro »  
Back to top
IP Logged
 
paolo48
Junior Member
**
Offline


Posts: 69
Joined: Dec 22nd, 2015
Re: Problem with HardwareSerial library for every compilations.
Reply #2 - Apr 18th, 2016 at 4:12pm
Print Post  
I have the impression that something went wrong in the core libraries(RTClib is part of core libraries...... it could have been my fault since I was struggling to resolve some porting error and i was navigating in all the way up to core libraries....some time you press a key and you may generate an error difficult to trace back!
On those library there should be a Read Only kind of protection!
In the mean time I have updated to last release:
Arduino IDE to 1.6.8
ESP8266 core libraries to the last release
Visual Micro to the last release 
and the problem desappear!
Thank you anyhow of your help!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problem with HardwareSerial library for every compilations.
Reply #3 - Apr 18th, 2016 at 4:24pm
Print Post  
Thanks for the update. 

Yes it's too easy to get to the underlying code from compiler errors and warnings  Smiley
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint