CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Structures in header file gives error

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
mutevaggil



Joined: 29 May 2008
Posts: 8

View user's profile Send private message

Structures in header file gives error
PostPosted: Mon Sep 08, 2008 1:31 am     Reply with quote

hi, its 16f690,

When I write a structure in a header file gives me "undefined identifier" error.
My structure is legal I think:

typedef struct{
int16 hasan;
byte Resolut;
int16 LowScale;
int16 HighScale;
long Password;
unsigned int8 PositionVal;
}MyType;

In main.h gives error, in main.c no gives error. Also I couldn't define my functions in header files. Why, do you have any idea ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Sep 08, 2008 1:08 pm     Reply with quote

Post a test program and a header file program so we can look at the
problem.
The test program could simply contain an #include for the PIC's .H file,
#fuses, #use delay() statements, the #include statement for your
other .H file, and a main(). That's it.
The other .H file could contain only your structure.

Then post your development environment. Are you using MPLAB with
a CCS command line compiler ? Or are you using the CCS IDE ?

Also post your compiler version.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group