This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: redefinition of `cyg_uint32'


On Wed, May 17, 2006 at 05:03:53PM +0200, Juergen Lambrecht wrote:
> Hello,
> 
> I get compiler errors for all `cyg_uintxxx' types, e.g.
> 
> redefinition of `cyg_uint32'
> 
> This is because the build directory 
> ecos_ims/install/include/linux/types.h contains the following wrong code:
> 
> #include "cyg/infra/cyg_type.h"
> 
> #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
> 
> The types above are redefined because "cyg/infra/cyg_type.h" already 
> defines them (ecos/packages/infra/current/include/cyg_type.h

cyg_types.h only defines the cyg_* types. It does not define the onces
without cyg_ . Hence why the linux/types.h exists.

However i don't see how this can cause a problem. Please can you give
a real test case to reproduce the error.

  Thanks
        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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]