On Tue, Jan 30, 2007 at 09:45:30AM -0800, David Luca wrote:
> No time machine, I just put in ecos-3.0 folder anything new from the cvs for
> testing purposes only
> :)
> Thank you for your hack, it works. But I don't understand why these types are
> redefined. Where
> should I include <stdint.h> since I don't want to change the package files
> (like BSD), only
> platform files?
> David.
The problem is in
packages/compact/linux/current/include/linux/types.h
It has
#define uint8_t cyg_uint8
#define uint16_t cyg_uint16
#define uint32_t cyg_uint32
#define int8_t cyg_int8
#define int16_t cyg_int16
#define int32_t cyg_int32
So when bsdtypes.h is included afterward, which has....
typedef __signed char int8_t;
typedef short int16_t;
etc, the int8_t gets replaced with cyg_int8 and you end up with
redefining the type.
The #defines need replacing with something better.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss