typedef types in packages

General discussion on Package Manager Software.
Post Reply
Author
Message
borris
Posts: 219
Joined: 22 Aug 2011 07:13

typedef types in packages

#1 Post by borris » 24 Nov 2012 06:30

Have a question that is probably common knowledge to some. What happens to the .h header file in packages? I've several typedefs that I would like to see globally in all modules and isn't working the way I would like:

Located in stdtype.h

Code: Select all

typedef unsigned short uint8_t;
typedef short          int8_t;
typedef unsigned int   uint16_t;
typedef int            int16_t;
typedef unsigned long  uint32_t;
typedef long           int32_t;

User avatar
dejan.odabasic
mikroElektronika team
Posts: 2649
Joined: 30 Apr 2012 14:20

Re: typedef types in packages

#2 Post by dejan.odabasic » 27 Nov 2012 13:59

Hello,

Every source file is compiled separately, that's why each source file need to have type definitions header file included.

Place #include "stdtype.h" at the begining of every source which uses the custom type defs.

Best regards.

Post Reply

Return to “Package Manager General”