错误:'uint8_t'尚未被声明 [英] error: 'uint8_t' has not been declared

查看:2136
本文介绍了错误:'uint8_t'尚未被声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在openSUSE 11.2中使用xbox360控制器作为游戏杆。尝试编译xboxdrv时( http://pingus.seul.org/~grumbel/xboxdrv/ )我收到以下错误:

I'm trying to use an xbox360 controller as a joystick in openSUSE 11.2. When attempting to compile xboxdrv (http://pingus.seul.org/~grumbel/xboxdrv/) I get the following errors:

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 :建筑物因为错误而终止。

scons: building terminated because of errors.

任何想法如何解决这个问题?

Any ideas how to fix this?

推荐答案

编辑src / xbox_controller.hpp,将缺少的 #include 添加到它(某处接近开始处)。

Edit src/xbox_controller.hpp, add missing #include <stdint.h> to it (somewhere near the beginning).

这篇关于错误:'uint8_t'尚未被声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆