[Dbc-talk] ellipsis
dbc-talk at rubyforge.org
dbc-talk at rubyforge.org
Tue Nov 9 03:35:38 EST 2004
(...)
> >
> Hmm... try adding this to your test:
> #include <stdint.h>
>
> Then it works. I don't think stdio.h or string.h guarantee the types
> uint8_t and uint16_t.
>
> gcc gives something like this:
> $ gcc cpp8.c -o cpp8.o
> cpp8.c:12: error: parse error before "count_nl"
> cpp8.c: In function `count_nl':
> cpp8.c:13: error: `uint16_t' undeclared (first use in this function)
> cpp8.c:13: error: (Each undeclared identifier is reported only once
> cpp8.c:13: error: for each function it appears in.)
> cpp8.c:13: error: parse error before "i"
> cpp8.c:14: error: `uint8_t' undeclared (first use in this function)
> cpp8.c:16: error: `i' undeclared (first use in this function)
> cpp8.c:18: error: `nl' undeclared (first use in this function)
>
ah i see - guess i included stdint.h implicitly with the "standard"
include of my embeded os (#include <rtems.h>) ;-)
sorry - my fault :)
seb
> -Charlie
>
> _______________________________________________
> Dbc-talk mailing list
> Dbc-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/dbc-talk
>
--
"Perfection is achieved, not when there is nothing left to add,
but when there is nothing left to take away."
--- Antoine de St. Exupery, Wind, Sand, and Stars, 1939
More information about the Dbc-talk
mailing list