This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

problem with stdlib.h



i make a new project in the ccs4 and try to put a simple prgram that uses the ( itoa function included in stdlib.h )  but i get this error :


 undefined first referenced
  symbol       in file    
 --------- ----------------
 _itoa     ./dddd.obj     

error: unresolved symbols remain
error: errors encountered during linking; "test_dec2bin.out" not built

here is the simple code :


#include <stdio.h>
# include <stdlib.h>


int main(void)
{
char binary_string[10];
unsigned short int number = 5;
itoa(number,binary_string,2);// 2 for binary
puts(binary_string);

getchar ();
}

may the problem be in the # include <stdlib.h> ,and this program is working on the Visual C++ 2010  , can any help me with this...........

Thanks