invalid conversion from `unsigned char*' to `char*'
I have downloaded "PicUSB" for Linux, which is a program that communicates with PIC18F2550 through USB (sends to the pic two numbers, waits for the result and shows it in a box). I've compiled it and it works fine, but now i'm trying to use the picusb.c and picusb.h files in another program, and it gives me the error:
PicUSB.cpp: In function ‘int SumaDosNumerosPIC(char, char)’:
PicUSB.cpp:143: error: conversión inválida de ‘unsigned char*’ a ‘char*’
Here's the code:
It's the same file used in the original program, i haven't changed it..
int SumaDosNumerosPIC (char num1, char num2)
unsigned char Estos_Bytes;
suma = bytes;
return ( (int) *suma);
Thanks in advance :) (and sorry for my mistakes, i'm a spanish- speaker)
Picusb for linux: http://webs.ono.com/ma4826/