I am using IAR Workbench for programming my stm32f4 Discovery board and am having trouble using functions like malloc from stdlib.h file which is present in this path: IAR Systems\Embedded Workbench 7.0\arm\inc\c. Immediately after I include <stdlib.h> and try to compile the program, I get a few error messages as follows:
Error[Pa002]: the type attribute ''__intrinsic'' is not allowed on this declaration C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\inc\c\stdlib.h 97
Error[Pa002]: the type attribute ''__nounwind'' is not allowed on this declaration C:\Program Files (x86)\IAR Systems\Embedded Workbench 7.0\arm\inc\c\stdlib.h 97
However, when I am including <stdio.h> from the same location, I seem to be facing no issues. Could someone please let me know what I could be missing.