Seems like it's complaining about the 2nd param, not the first.  Could
you show how txCfg is declared, and how hdrInfo_t is defined?  I don't
know what "generic*" means, but the asterisk makes me think you're
passing a pointer, while hdrInfo_t (if it's not a typedef) is probably
a struct (not a pointer to a struct).

- Miles

PS: In general in C it's more efficient to pass a pointer to a
structure, otherwise the entire structure will be copied onto the
stack.

On Wed, Oct 14, 2009 at 2:33 PM, Tebogo <[email protected]> wrote:
> I keep getting an error whenever I compile a the following piece of code
>
> // In a header file I have the declaration of a function
> void sendData( uint8 *payLoad, hdrInfo_t headerCfg );
>
> // In the application source file I have the following invocation
>     sendData( payLoad, txCfg);
>
> // Declaration of payLoad
>
> uint8 payLoad[10];
>
>
> The error details:
> Error 78: incompatible types
> from type 'struct __00010000'
> to type 'struct __00010000 generic*'
>
> I am at my wit's end please help
> --
> Regards,
> Tebogo Thebe
>
>
>
>
>
> This message and attachments are subject to a disclaimer. Please refer
> to www.it.up.ac.za/documentation/governance/disclaimer/ for full
> details. / Hierdie boodskap en aanhangsels is aan 'n vrywaringsklousule
> onderhewig. Volledige besonderhede is by
> www.it.up.ac.za/documentation/governance/disclaimer/ beskikbaar.
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Sdcc-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to