why no #include <stddef.h>

Beta Testing discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
seulater
Posts: 74
Joined: 19 Jan 2011 15:14

why no #include <stddef.h>

#1 Post by seulater » 20 Feb 2011 04:39

i see that you cannot use #include <stddef.h>, why ?

The more i play with this the more i have a love / hate feeling for this new Beta.
The more i use it the more i like it, yet the more i use it the more i see that its not an ANSI C Compiler.
Such as disappointment. There is such real potential here, but its being held way back because of this.

I am trying to use FreeRTOS with your compiler, but i am getting slammed with errors left and right because i cannot use standard C include files.

User avatar
mileta.miletic
mikroElektronika team
Posts: 493
Joined: 05 Jun 2009 14:46
Location: Belgrade, Serbia
Contact:

Re: why no #include <stddef.h>

#2 Post by mileta.miletic » 28 Feb 2011 11:42

Hi,

mikroC is ANSI C compliant compiler. The functions have been mostly implemented according to the ANSI C standard, but certain functions have been modified in order to support embedded programming.
As for stddef header file, we will add it in the next release.
Regards,
Mileta

p.erasmus
Posts: 3391
Joined: 05 Mar 2009 10:28

Re: why no #include <stddef.h>

#3 Post by p.erasmus » 28 Feb 2011 18:11

As for stddef header file, we will add it in the next release.
This is a good decision looking forward to it :D
P.Erasmus
Saratov,Russia
--------------------------------------------------------------

seulater
Posts: 74
Joined: 19 Jan 2011 15:14

Re: why no #include <stddef.h>

#4 Post by seulater » 28 Feb 2011 18:22

I should have not said
its not an ANSI C Compiler
. Sorry for that.

what i meant was to say is the typical C lib files should all be available, Maby not all, but at lease some of the main ones.

For example.

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <predef.h>
#include <math.h>


as shown here:

http://en.wikipedia.org/wiki/C_standard_library

p.erasmus
Posts: 3391
Joined: 05 Mar 2009 10:28

Re: why no #include <stddef.h>

#5 Post by p.erasmus » 28 Feb 2011 19:36

From your list most of them are already included in the compiler
Attachments
2.jpg
2.jpg (7.32 KiB) Viewed 5629 times
P.Erasmus
Saratov,Russia
--------------------------------------------------------------

seulater
Posts: 74
Joined: 19 Jan 2011 15:14

Re: why no #include <stddef.h>

#6 Post by seulater » 28 Feb 2011 19:48

true, just was an example.

Post Reply

Return to “mikroC PRO for PIC32 Beta Testing”