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