Joined: 03 Dec 2005 Posts: 182 Location: Australia SA
error on stdlib.h on 24F part
Posted: Sat Dec 01, 2007 1:13 pm
FYI
I was trying to do a QSORT using the 24FJ64GA004 part where I always crash at typedef signed int8 (*_Cmpfun)(char * p1,char * p2);
I then added to the stdlib.h the following to compensate.
Code:
#if !defined(__PCD__)
typedef signed int8 (*_Cmpfun)(char * p1,char * p2);
#else
typedef signed int16 (*_Cmpfun)(char * p1,char * p2);
#endif
now compiles OK, I would suspect other part on this header file may need simular changes? _________________ What has been learnt if you make the same mistake?
Ken Johnson
Joined: 23 Mar 2006 Posts: 197 Location: Lewisburg, WV
Posted: Sun Dec 02, 2007 3:34 pm
Please send this to support@ccs.com so they can update the file(s)
Ken
Storic
Joined: 03 Dec 2005 Posts: 182 Location: Australia SA
Posted: Mon Dec 03, 2007 5:41 am
Has been sent to tech suport _________________ What has been learnt if you make the same mistake?
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