
uname -r
我嘗試在內核版本為 2.6.18-92.1.13.el5(來自)和使用 gcc 6.1.0 的 2016 intel c++ 編譯器的Linux 系統上編譯最新的 boost 庫 (1.62.0) 。
新的 intel c++ 編譯器和 gcc 安裝在我的主目錄的子目錄中。我正在使用舊的 glibc,可能和內核一樣古老(ldd --version
給出ldd (GNU libc) 2.5
)。
我收到線程模組的以下錯誤:
In file included from libs/log/src/event.cpp(31):
/usr/include/linux/futex.h(96): error: identifier "u32" is undefined
long do_futex(u32 *uaddr, int op, u32 val, unsigned long timeout,
^
這是整個編譯中唯一的錯誤。
我無法在電腦上安裝新內核,因為我沒有 root 存取權限。
安裝最新的 Linux 頭檔是個好主意嗎?這能讓我安裝 boost 1.62.0 而不會出錯嗎?