4
我试图编译an example stack trace displaying code。当我编译test.c
文件有:STDERR_FILENO在ubuntu上未申报
gcc -g -rdynamic ./test.c -o test
我收到以下错误:
./test.c: In function ‘handler’:
./test.c:16: error: ‘STDERR_FILENO’ undeclared (first use in this function)
./test.c:16: error: (Each undeclared identifier is reported only once
./test.c:16: error: for each function it appears in.)
我包括是一样的,在原来的职位代码:
#include <stdio.h>
#include <execinfo.h>
#include <signal.h>
#include <stdlib.h>
我的机器是Ubuntu的13.04。我错过了一些图书馆还是没有收录什么?
显示您在'test.c'中包含的内容。 – trojanfoe
@trojanfoe更新 – ducin