It is currently 22 Oct 2018 10:46

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 24 Nov 2012 06:30 
Offline

Joined: 22 Aug 2011 07:13
Posts: 219
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
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;


Top
 Profile  
 
PostPosted: 27 Nov 2012 13:59 
Offline
mikroElektronika team
User avatar

Joined: 30 Apr 2012 14:20
Posts: 2649
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: