solaris下缺少ptrace.h,shc如何使用?
gcc .x.c报错test.csh.x.c:239:24: sys/ptrace.h:
test.csh.x.c: In function `untraceable':
test.csh.x.c:267: error: `PTRACE_ATTACH' undeclared (first use in this function)
test.csh.x.c:267: error: (Each undeclared identifier is reported only once
test.csh.x.c:267: error: for each function it appears in.)
.x.c中需要include sys/ptrace.h 获取`PTRACE_ATTACH'
但是solaris没有include sys/ptrace.h 如何获取`PTRACE_ATTACH'
shc如何使用呢? man ptrace, 可以详细得知。
页:
[1]