error: conflicting types for 'RTASSERTVAR'
2017-01-14 17:57
281 查看
—————-忠于实践,记录点滴———————
作者:yanxiangyfg
来源:http://blog.csdn.net/yanxiangyfg?viewmode=contents
编译virtualbox additions的时候出现如下错误:
解决方法:
在最外层Makefile中加入”export BUILD_TARGET_ARCH=x86”解决
问题分析:
通过查找关键字’RTASSERTVAR’发现vboxguest-5.0.4源码中除了有引用此变量外,并无定义. 神奇般的想到可以是编译环境原因,最后通过查看makefile发现,源码中有关于编译架构的变量,通过在最外层Makefile中导出变量”export BUILD_TARGET_ARCH=x86”来解决此问题.
知道”RTASSERTVAR”变量具体哪里定义或者代表啥的可以留言,以便后来着能知其然,也知其所以然.
作者:yanxiangyfg
来源:http://blog.csdn.net/yanxiangyfg?viewmode=contents
编译virtualbox additions的时候出现如下错误:
vboxguest-5.0.4/vboxguest/include/iprt/lockvalidator.h:64:1: error: conflicting types for 'RTASSERTVAR' vboxguest-5.0.4/vboxguest/include/iprt/lockvalidator.h:64:1: note: previous declaration of 'RTASSERTVAR' was here
解决方法:
在最外层Makefile中加入”export BUILD_TARGET_ARCH=x86”解决
问题分析:
通过查找关键字’RTASSERTVAR’发现vboxguest-5.0.4源码中除了有引用此变量外,并无定义. 神奇般的想到可以是编译环境原因,最后通过查看makefile发现,源码中有关于编译架构的变量,通过在最外层Makefile中导出变量”export BUILD_TARGET_ARCH=x86”来解决此问题.
知道”RTASSERTVAR”变量具体哪里定义或者代表啥的可以留言,以便后来着能知其然,也知其所以然.
相关文章推荐
- 关于”error conflicting types for function”编译错误的分析
- 关于”error conflicting types for function”编译错误的分析
- 关于 error: conflicting types for 'XXXX' 另一类分析
- 关于“error: conflicting types for 'function'”编译错误的分析
- 安装keepalive错误:types.h:14: error: conflicting types for ‘fd_set’
- libc/sysdeps/linux/common/sendfile.c:20: error: conflicting types for 'sendfile64'
- error: conflicting types for 'XXXX'
- Error:(305, 24) error: conflicting types for ‘ XXXXXX’
- Flex:解决 error: conflicting types for ‘yylval’
- error: conflicting types for ‘getline’
- 好文章error: conflicting types for 'urlencode'
- /usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’
- error: conflicting types for 'XXXX'
- conflicting types for 'wchar_t'
- conflicting types for xx错误
- 解决error: failed to launch"/private/var/mobile/Applications/XX"-- timed out waiting for app to launch
- 《C程序设计语言》示例报错“conflicting types for ‘getline’”勘误
- 解决error: failed to launch"/private/var/mobile/Applications/XX"-- timed out waiting for app to launch
- warning: conflicting types for built-in function 'putc'