最近交叉编译Bluez时遇到的问题,本人完全新手,最近在学校里做课题用到。。
./configure --build=i686 --host=arm-linux CC=arm-linux-gcc --target=arm-linux
后make出错,貌似是交叉编译器的问题,'USHRT_MAX' 没声明?如何解决??求教。不胜感激。
(所用环境:Fedora 12 . 交叉编译器:友善自带的)
以下错误信息:
sdp.c: In function 'sdp_data_alloc_with_length':
sdp.c:426: error: 'USHRT_MAX' undeclared (first use in this function)
sdp.c:426: error: (Each undeclared identifier is reported only once
sdp.c:426: error: for each function it appears in.)
sdp.c:435: error: 'UCHAR_MAX' undeclared (first use in this function)
sdp.c: In function 'sdp_append_to_buf':
sdp.c:2348: error: 'UCHAR_MAX' undeclared (first use in this function)
make[2]: *** [sdp.lo] Error 1
make[2]: Leaving directory `/root/bluez-libs-2.25/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/bluez-libs-2.25'
make: *** [all] Error 2
[ 此帖被wangqin456在2009-11-28 23:18重新编辑 ]