Implicit Declaration of function int kill()......

Charles Kibue ckibue at mailafrica.net
Sun Oct 15 09:37:21 BST 2000


Hi all,
	I'm trying to use  kill(pid_t pid, int sig) (man 2 kill) in the
destructor method section below with no luck yet:

M68681::~M68681()
{
  // We need to destory the Command Process
  if(coma_pid != -1)
  {
    close(coma_read_id);
    close(coma_write_id);
    kill(coma_pid,SIGKILL);
  }

  // We need to destory the Command Process
  if(comb_pid != -1)
  {
    close(comb_read_id);
    close(comb_write_id);
    kill(comb_pid,SIGKILL);
  }
}

This is from the BSVC Microprocessor simulation framework by B. W. Mott. On
compilation, I get the error:

g++ -I/home/ckibue/bsvc/src/Framework  -O -ansi -Wall -D_G_NO_EXTERN_TEMPLATES -c M68681.cxx
M68681.cxx: In method `M68681::~M68681()':
M68681.cxx:293: implicit declaration of function `int kill(...)'
make[2]: *** [M68681.o] Error 1
make[2]: Leaving directory `/home/ckibue/bsvc/src/sim68000/devices'
make[1]: *** [subdirectories] Error 1
make[1]: Leaving directory `/home/ckibue/bsvc/src/sim68000'
make: *** [subdirectories] Error 1

The headers sys/types.h and signal.h are #included.
	Would appreciate any help/advice (PS. I got into C++ coding recently
and KDevelop is fun to learn with.)

Regards,
Kibue.
-- 
Open Doors, break Windows!
____________________________________
 Aircraft Maint. Engr. (Electrical/Electronics).
 Airworks Kenya Ltd.
 Fax/Tel: 254-02-607905
 Wilson Airport (HKNW). Kenya.
____________________________________






More information about the KDevelop mailing list