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 support@ccsinfo.com

undefined identifier byte

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



Joined: 27 May 2010
Posts: 52

View user's profile Send private message

undefined identifier byte
PostPosted: Mon Jan 10, 2011 11:15 am     Reply with quote

I'm using the ccs built-in sqrt to calculate the square root of a float. It gives me a linker error that there is an undefined identifier BYTE. Since it's a builtin I wouldn't expect this to be an issue. Also I have properly included the math.h library. This problem occurs in the sqrt function. I'm not really sure how to fix it. Any suggestions or has anyone had similar problems?
temtronic



Joined: 01 Jul 2010
Posts: 9171
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Jan 10, 2011 12:47 pm     Reply with quote

you'll have to show us a small,compiliable program with headers for us to help you.....also need compiler version !
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Mon Jan 10, 2011 1:14 pm     Reply with quote

BYTE isn't a CCS C built-in data type. You have to define it.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jan 10, 2011 1:20 pm     Reply with quote

It's in the .h file for every PIC.

16F877.h
Quote:

////////////////// Useful defines
#define FALSE 0
#define TRUE 1

#define BYTE int8
#define BOOLEAN int1
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