I try to make a function with the class DS18B20 in argument:
Code: Select all
void lectureTemp(DS18B20Sensor * capteur, float* temp, int ligne)
Code: Select all
C:\Users\Jerome\AppData\Local\Temp\build8533003694867026979.tmp\_Test_ucxx.c:673: error 98: conflict with previous definition of 'lectureTemp' for attribute 'type'
from type 'void function ( struct DS18B20Sensor generic* fixed, float generic* fixed, int fixed) __reentrant fixed'
to type 'void function ( struct DS18B20Sensor generic* fixed, float generic* fixed, int fixed) __reentrant fixed'
Error. SDCC returned: 1
When I take a look in the file "prog_ucxx.c" , I find my function written like that:
Code: Select all
void lectureTemp(struct DS18B20Sensor * capteur, float * temp, int ligne);
Code: Select all
void lectureTemp(struct cxx__class__DS18B20Sensor* capteur, float * temp, int ligne);