Using GCBASIC Version: 0.98.04 2018-10-20 (Linux 64 bit)
I had fun clearing up a mysterious behavior of my program.
I am using ds3231.h among other things.
Because I had changed from my Startpic18 board to a prototype built on a hole grid, I no longer needed an LCD display, but a glcd type.
So far so good, of course I have removed the initializations of the now no longer needed LCD. But there were lots of compiler errors.
Long story short, ds3231.h has used a cls from lcd.h.
In my opinion, this is wrong, because not everyone has an LCD display, which is
ds3231 is used.
:-)
I have now commented out the "cls" from ds3231.h in line 2284 and lo and behold, it works.
I did want create a Bug report, but there was no Milestone 098.4 ...
Last edit: bed 2019-03-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Using GCBASIC Version: 0.98.04 2018-10-20 (Linux 64 bit)
I had fun clearing up a mysterious behavior of my program.
I am using ds3231.h among other things.
Because I had changed from my Startpic18 board to a prototype built on a hole grid, I no longer needed an LCD display, but a glcd type.
So far so good, of course I have removed the initializations of the now no longer needed LCD. But there were lots of compiler errors.
Long story short, ds3231.h has used a cls from lcd.h.
In my opinion, this is wrong, because not everyone has an LCD display, which is
ds3231 is used.
:-)
I have now commented out the "cls" from ds3231.h in line 2284 and lo and behold, it works.
I did want create a Bug report, but there was no Milestone 098.4 ...
Last edit: bed 2019-03-16
Great catch.
Updated the library for the next release and reposted, see https://sourceforge.net/p/gcbasic/code/HEAD/tree/GCBASIC/trunk/include/DS3231.h
Once again, faster than light :-)
To be honest, finding this had improved my understanding of how the compiler works a lot ;-)
I just inspected all the .h libraries in the include folder. I found no other library with this silly addition.
We improve the quality with every change and update.
Thank you