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