Hi,
I build the sample project ComplexFIR_MicroBlaze follow the steps of Tutorial 2:Complex FIR on EDK 9.2i,and the project is sucessfully bulit without any errors and warnings.But when I launch platform studio SDK,and import the project to SDK,I got 1 warning as follow:
Description | Resource |In Folder | Location
incompatible implicit declaration of built-in function 'malloc' [co_type.c] | microblaze_0_sw_platform | | line 15 .
Since the source files of the project don't use the function 'malloc', I don't know why the warning occure.Did anyone met this situation?How did you fix it?
Thanks advance! BTW, my edk is 9.2i, impluse C is 3.30a.
mmw119
incompatible implicit declaration of built-in function 'malloc'
Started by mmw119, Mar 29 2009 05:24 AM
1 reply to this topic
#1
Posted 29 March 2009 - 05:24 AM
#2
Posted 03 April 2009 - 11:47 AM
Hi mmw119,
The library source code "co_type.c" in directory "EDK/microblaze_0/libsrc/fsl_filt_v1_00_a/src/" uses the function "malloc".
To fix this problem, you may add "#include <stdlib.h>" in the beginning of the code. I use EDK 10.1, and it doesn't give such a warning messge.
Hope this helps.
Mei
The library source code "co_type.c" in directory "EDK/microblaze_0/libsrc/fsl_filt_v1_00_a/src/" uses the function "malloc".
To fix this problem, you may add "#include <stdlib.h>" in the beginning of the code. I use EDK 10.1, and it doesn't give such a warning messge.
Hope this helps.
Mei
QUOTE (mmw119 @ Mar 29 2009, 06:24 AM) <{POST_SNAPBACK}>
Hi,
I build the sample project ComplexFIR_MicroBlaze follow the steps of Tutorial 2:Complex FIR on EDK 9.2i,and the project is sucessfully bulit without any errors and warnings.But when I launch platform studio SDK,and import the project to SDK,I got 1 warning as follow:
Description | Resource |In Folder | Location
incompatible implicit declaration of built-in function 'malloc' [co_type.c] | microblaze_0_sw_platform | | line 15 .
Since the source files of the project don't use the function 'malloc', I don't know why the warning occure.Did anyone met this situation?How did you fix it?
Thanks advance! BTW, my edk is 9.2i, impluse C is 3.30a.
mmw119
I build the sample project ComplexFIR_MicroBlaze follow the steps of Tutorial 2:Complex FIR on EDK 9.2i,and the project is sucessfully bulit without any errors and warnings.But when I launch platform studio SDK,and import the project to SDK,I got 1 warning as follow:
Description | Resource |In Folder | Location
incompatible implicit declaration of built-in function 'malloc' [co_type.c] | microblaze_0_sw_platform | | line 15 .
Since the source files of the project don't use the function 'malloc', I don't know why the warning occure.Did anyone met this situation?How did you fix it?
Thanks advance! BTW, my edk is 9.2i, impluse C is 3.30a.
mmw119
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












