linux不支持uint64_t,Code :: Blocks linux glext.h“对uint64_t的引用是不明确的”

我使用Xubuntu 14.04中的Code :: Blocks和从源代码安装的GLFW3制作OpenGL应用程序。在蚀CDT它工作但在此IDE编译时的错误消息显示出来:Code :: Blocks linux glext.h“对uint64_t的引用是不明确的”

[...]

/usr/include/GL/glext.h|1404|error: reference to ‘uint64_t’ is ambiguous|

/usr/include/stdint.h|55|note: candidates are: typedef long unsigned int uint64_t|

third_party/glm/fwd.hpp|907|note: typedef glm::detail::uint64 glm::uint64_t|

/usr/include/GL/glext.h|1404|error: ‘uint64_t’ does not name a type|

/usr/include/GL/glext.h|1405|error: reference to ‘int64_t’ is ambiguous|

/usr/include/x86_64-linux-gnu/sys/types.h|197|note: candidates are: typedef long int int64_t|

third_party/glm/fwd.hpp|305|note: typedef glm::detail::int64 glm::int64_t|

/usr/include/GL/glext.h|1405|error: ‘int64_t’ does not name a type|

/usr/include/GL/glext.h|1478|error: ‘GLuint64’ has not been declared|

/usr/include/GL/glext.h|1479|error: ‘GLuint64’ has not been declared|

/usr/include/GL/glext.h|1480|error: ‘GLint64’ has not been declared|

/usr/include/GL/glext.h|1482|error: ‘GLint64’ has not been declared|

/usr/include/GL/glext.h|1483|error: ‘GLint64’ has not been declared|

/usr/include/GL/glext.h|1547|error: ‘GLint64’ has not been declared|

/usr/include/GL/glext.h|1548|error: ‘GLuint64’ has not been declared|

/usr/include/GL/glext.h|2447|error: ‘GLint64’ has not been declared|

/usr/include/GL/glext.h|2591|error: reference to ‘uint64_t’ is ambiguous|

/usr/include/stdint.h|55|note: candidates are: typedef long unsigned int uint64_t|

third_party/glm/fwd.hpp|907|note: typedef glm::detail::uint64 glm::uint64_t|

/usr/include/GL/glext.h|2591|error: ‘uint64_t’ does not name a type|

/usr/include/GL/glext.h|2593|error: typedef ‘GLuint64’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|2593|error: ‘PFNGLGETTEXTUREHANDLEARBPROC’ was not declared in this scope|

/usr/include/GL/glext.h|2594|error: typedef ‘GLuint64’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|2594|error: ‘PFNGLGETTEXTURESAMPLERHANDLEARBPROC’ was not declared in this scope|

/usr/include/GL/glext.h|2595|error: typedef ‘PFNGLMAKETEXTUREHANDLERESIDENTARBPROC’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|2595|error: ‘GLuint64’ was not declared in this scope|

/usr/include/GL/glext.h|2596|error: typedef ‘PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|2596|error: ‘GLuint64’ was not declared in this scope|

/usr/include/GL/glext.h|2597|error: typedef ‘GLuint64’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|2597|error: ‘PFNGLGETIMAGEHANDLEARBPROC’ was not declared in this scope|

/usr/include/GL/glext.h|2598|error: typedef ‘PFNGLMAKEIMAGEHANDLERESIDENTARBPROC’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|2598|error: ‘GLuint64’ was not declared in this scope|

/usr/include/GL/glext.h|2598|error: expected primary-expression before ‘access’|

/usr/include/GL/glext.h|2599|error: typedef ‘PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|2599|error: ‘GLuint64’ was not declared in this scope|

/usr/include/GL/glext.h|2600|error: ‘GLuint64’ has not been declared|

/usr/include/GL/glext.h|2601|error: ‘GLuint64’ does not name a type|

/usr/include/GL/glext.h|2602|error: ‘GLuint64’ has not been declared|

/usr/include/GL/glext.h|2603|error: ‘GLuint64’ does not name a type|

/usr/include/GL/glext.h|2604|error: typedef ‘PFNGLISTEXTUREHANDLERESIDENTARBPROC’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|2604|error: ‘GLuint64’ was not declared in this scope|

/usr/include/GL/glext.h|2605|error: typedef ‘PFNGLISIMAGEHANDLERESIDENTARBPROC’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|2605|error: ‘GLuint64’ was not declared in this scope|

/usr/include/GL/glext.h|2606|error: ‘GLuint64EXT’ has not been declared|

/usr/include/GL/glext.h|2607|error: ‘GLuint64EXT’ does not name a type|

/usr/include/GL/glext.h|2608|error: ‘GLuint64EXT’ has not been declared|

/usr/include/GL/glext.h|7547|error: ‘GLint64’ has not been declared|

/usr/include/GL/glext.h|7548|error: ‘GLuint64’ has not been declared|

/usr/include/GL/glext.h|8235|error: typedef ‘GLuint64’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|8235|error: ‘PFNGLGETTEXTUREHANDLENVPROC’ was not declared in this scope|

/usr/include/GL/glext.h|8236|error: typedef ‘GLuint64’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|8236|error: ‘PFNGLGETTEXTURESAMPLERHANDLENVPROC’ was not declared in this scope|

/usr/include/GL/glext.h|8237|error: typedef ‘PFNGLMAKETEXTUREHANDLERESIDENTNVPROC’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|8237|error: ‘GLuint64’ was not declared in this scope|

/usr/include/GL/glext.h|8238|error: typedef ‘PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC’ is initialized (use decltype instead)|

/usr/include/GL/glext.h|8238|error: ‘GLuint64’ was not declared in this scope|

||More errors follow but not being shown.|

||Edit the max errors limit in compiler options...|

||=== Build failed: 50 error(s), 1 warning(s) (0 minute(s), 0 second(s)) ===|

编译器是GNU GCC和代码是C++ 11。该链接库是按以下顺序:

X11

pthread

Xrandr

Xi

Xxf86vm

rt

m

GL

链接搜索目录:

/usr/lib

/usr/local/lib

/usr/include *Tried in Compiler search directories too

/usr/local/include *Tried in Compiler search directories too

如果你需要更多的东西,只是问。 PD:我没有直接包含GL标题,glfw3为我做了。

2014-08-30

Kamikaze

+0

此问题与连接无关。我最好让你给我们看你的源代码。 –

2014-08-30 10:42:50

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值