1

Possible Duplicate:
Where is the itoa function in Linux ?

I'm getting error in gcc while using this

     char pipeName [33];

     int pid= getpid(); 

     itoa(pid,pipeName,10);

I'm getting:

send.c:(.text+0x6c): undefined reference to `itoa'

I included <stdlib.h> and <stdio.h>. What's wrong here?

Community
  • 1
  • 1
andandandand
  • 21,946
  • 60
  • 170
  • 271

0 Answers0