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 [2]  Send TopicPrint
Hot Topic (More than 8 Replies) Visual Studio ESP8266 IDE 1.6.5_Time.h library error! (Read 25377 times)
paolo48
Junior Member
**
Offline


Posts: 69
Joined: Dec 22nd, 2015
Re: Visual Studio ESP8266 IDE 1.6.5_Time.h library error!
Reply #20 - Jan 31st, 2016 at 4:53pm
Print Post  
Thanks for your fast replay!
If I upload other sketches, not using that library DS1307RTC , I don't have any problem both with Visual Micro and with Arduino IDE!
This should means that the USB interface and the drivers are OK!
This issue is strictly related to that library and to the platform ESP8266.
   The ESP8266 core github site advise to use another Real Time Clock library to avoid conflicts with core/time.c !
       But using 1.6.5 IDE I don't have any conflict and RTC1307RTC  is a much widely used and complete library.
  
Back to top
 
IP Logged
 
paolo48
Junior Member
**
Offline


Posts: 69
Joined: Dec 22nd, 2015
Re: Visual Studio ESP8266 IDE 1.6.5_Time.h library error!
Reply #21 - Jan 31st, 2016 at 6:29pm
Print Post  
I have found the code inside the library that generate the problem  Smiley:

The DS1307RTC.cpp at the end contain the statement:

DS1307RTC RTC = DS1307RTC(); // create an instance for the user

If I delete the statement from library code and I put it as a normal declaration at the beginning of the .ino file it run like a charm!!

But don't ask me why!?

Why this can be done in IDE 1.6.5 and not with VisualMicro???
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Visual Studio ESP8266 IDE 1.6.5_Time.h library error!
Reply #22 - Jan 31st, 2016 at 6:32pm
Print Post  
Useful thanks. I will look at the difference between arduino and visual micro.

Are you using a standard DS130RTC example? Which one?
  
Back to top
IP Logged
 
paolo48
Junior Member
**
Offline


Posts: 69
Joined: Dec 22nd, 2015
Re: Visual Studio ESP8266 IDE 1.6.5_Time.h library error!
Reply #23 - Jan 31st, 2016 at 6:45pm
Print Post  
I used ReadTest.ino : moved declaration from .cpp to .ino!!

It works and it is an easy fix!! Smiley

To have an instance declaration inside the library is unusual....
but.... 

Let me know if you find the reason of those problems!

Anyhow I can move ahead! Wink
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint