2009-12-28 153 views
1

我試圖在openSUSE 11.2中使用xbox360控制器作爲遊戲杆。當試圖編譯xboxdrv(http://pingus.seul.org/~grumbel/xboxdrv/)我得到以下錯誤:錯誤:'uint8_t'尚未聲明

g++ -o src/xbox_controller.o -c -g -O2 -Wall -ansi -pedantic src/xbox_controller.cpp 
In file included from src/xbox_controller.hpp:23, 
       from src/xbox_controller.cpp:24: 
src/xbox_generic_controller.hpp:30: error: 'uint8_t' has not been declared 
src/xbox_generic_controller.hpp:30: error: 'uint8_t' has not been declared 
src/xbox_generic_controller.hpp:31: error: 'uint8_t' has not been declared 
In file included from src/xbox_controller.cpp:24: 
src/xbox_controller.hpp:38: error: 'uint8_t' has not been declared 
src/xbox_controller.hpp:38: error: 'uint8_t' has not been declared 
src/xbox_controller.hpp:39: error: 'uint8_t' has not been declared 
src/xbox_controller.cpp:54: error: variable or field 'set_rumble' declared void 
src/xbox_controller.cpp:54: error: 'uint8_t' was not declared in this scope 
src/xbox_controller.cpp:54: error: 'uint8_t' was not declared in this scope 
scons: *** [src/xbox_controller.o] Error 1 

scons的:建築由於錯誤而終止。

任何想法如何解決這一問題?

+0

你應該在SO上發佈。 – ephilip 2009-12-28 18:37:04

+0

但實際上並沒有發佈;)當足夠高的代表用戶/主持人投票支持遷移時,它會自動遷移。 – ChrisF 2009-12-28 18:47:33

+0

忘了那個...對不起。 – ephilip 2009-12-28 18:54:02

回答

5

編輯src/xbox_controller.hpp,將缺少的#include <stdint.h>添加到它(某處接近開始處)。