Sign in

username:

password:



Not a member?

Search c55x



Search tips

Subscribe to c55x



c55x by Keywords

AIC23 | C5509 | CCS | CSL | EMIF | EVM | GEL | GPIO | HPI | Interfacing | JTAG | McBSP | OMAP | Omap15 | OMAP59 | RTDX | SDRAM | TMS320VC5509 | USB | XDS5


Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C55x | CCS 3.1 error

Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).

  

Post a new Thread

CCS 3.1 error - p4pr...@gmail.com - Mar 7 10:51:23 2008

Hi,

   I am working CCS v3.1. in tat i wan to do malloc of a simple array and i am
getting the following linker error.

undefined                        first referenced
 symbol                              in file
---------                        ----------------
_malloc                         
C:\Projects\AMSEC\AMSECTI\TIEx\mallc\Debug\mallc.obj
>>   error: symbol referencing errors - './Debug/mallc.out' not built 

i am using the cmd file and also defined the heap size of 1000 in the build
option.

could any one give me a solution

Regards,
-Prassi
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video
Transcoding Solution for Commercial & Consumer End Equipment:
www.ti.com/dm6467

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )

Re: CCS 3.1 error - Sima Baymani - Mar 7 12:36:34 2008

Looks like you didn't include the headerfiles and maybe also didn't
locate the lib-file containing malloc?
You need to include stdlib.h to get the headerfile with the malloc
declaration. And then you'll also probably need to update your
build/link command options to point to the lib-file that defines
malloc.

On a sidenote: my philosophy when entering the embedded/realtime world
has been to avoid using malloc and use statically allocated memory. My
argument is that you have to account for all your memory use anyway
and you're also "alone" in your system (no other programs running
like
on a PC), so using malloc is no big benefit. Any other opinions?
HTH,
Sima

On Fri, Mar 7, 2008 at 11:56 AM,  <p...@gmail.com> wrote:
> Hi,
>
>  I am working CCS v3.1. in tat i wan to do malloc of a simple array and i
am
> getting the following linker error.
>
>  undefined first referenced
>  symbol in file
>  --------- ----------------
>  _malloc C:\Projects\AMSEC\AMSECTI\TIEx\mallc\Debug\mallc.obj
>  >> error: symbol referencing errors - './Debug/mallc.out' not built
>
>  i am using the cmd file and also defined the heap size of 1000 in the
build
> option.
>
>  could any one give me a solution
>
>  Regards,
>  -Prassi
>  
Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video
Transcoding Solution for Commercial & Consumer End Equipment:
www.ti.com/dm6467

______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c55x -- send a blank email to c55x-subscribe@yahoogroups.com )