Dear All,

Can't understand why can't complier here:
Could you please help?
Thank you very much!

Best regards,
Boki.
/////////////////////////////////////////////////////////////////////////////////////////////////
main()
{

unsigned char* boki;
unsigned int result=0;
result=UART_Read(boki);

}

unsigned int UART_Read (unsigned char *ch)
{

}

err msg:
'unsigned char ' differs in levels of indirection from 'unsigned char
*'
/////////////////////////////////////////////////////////////////////////////////////////////////

Re: Differs in levels of indirection ? by Boki

Boki
Thu Jun 08 20:40:48 CDT 2006


Boki =E5=AF=AB=E9=81=93=EF=BC=9A

> Dear All,
>
> Can't understand why can't complier here:
> Could you please help?
> Thank you very much!
>
> Best regards,
> Boki.
> /////////////////////////////////////////////////////////////////////////=
////////////////////////
> main()
> {
>
> unsigned char* boki;
> unsigned int result=3D0;
> result=3DUART_Read(boki);
>
> }
>
> unsigned int UART_Read (unsigned char *ch)
> {
>
> }
>
> err msg:
> 'unsigned char ' differs in levels of indirection from 'unsigned char
> *'
> /////////////////////////////////////////////////////////////////////////=
////////////////////////

Hi All,

Sorry, the definition in .h file is different.

Best regards,
Boki.