On Nov 12, 2007 2:42 PM, Alan Carvalho de Assis <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm compiling a simple PICos18 tasks example but I'm facing pointers problems:
>
> sdcc -I /usr/local/share/sdcc/include/pic16 -mpic16 -p18f4520 -o
> "taskdesc.o" -c "taskdesc.c";
> at 170: error 129: pointer types incompatible
> make: *** [taskdesc.o] Error 1
>
> This is referenced error line:
>
> volatile rom unsigned int * taskdesc_addr = ((&descromarea)+1);

this type of adding int to pointer is rarely valid( depends on compiler ).
It would be better to use ++(&descromarea) or &(&descromarea)[1] if
this was you intention.

anyway, you should avoid this kind of hacking, why dont you just
directly access the structure?

--
Peter

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to