HDQ comminication protocol - compile errors

Dear All,

I am trying to compile the HDQ library that I found in a forum here (HDQ (TI Fuel-gauge protocol) library?)

It dates from 2008 and it is intended for the old BQ2013 battery gauge chip.

But i get a lot of compiler errors, header files not found, conflicting declarations etc...

I guess a lot has changed over the years in the arduino development environment so the library needs an update.
I would appreciate some help with this.
kind regards
Frank

Read the forum guidelines.

Use the IDE autoformat tool (ctrl-t or Tools, Auto Format) to indent the code for readability before posting code.

Post your code in code tags.

Post the complete error message. Paraphrasing leaves out important information. In the IDE there is the "copy error message" button. Copy the error messages and put into a post in code tags.

One thing, does the library include WProgram.h? If so change it to Arduino.h

Thanks I did that already
I also removed
#include "pins_arduino.h"
and
#include "avrmacros.h"

now the error says

In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:232:0,
from C:\Users\frank\Documents\Arduino\libraries\HDQ\HDQ.cpp:54:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/WString.h:126:27: error: conflicting declaration of C function 'StringSumHelper& operator+(const StringSumHelper&, const char*)'
friend StringSumHelper & operator + (const StringSumHelper &lhs, const char *cstr);

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.