本版版主招募中

 
标题: linux下编译错误,请大虾帮忙看看!谢谢了!
tsfuyf
LU新生
Rank: 1



UID 50314
精华 0
积分 1
帖子 1
活跃指数 1
LU金币 2 个
LU金条 0 个
阅读权限 10
注册 2006-7-11
 
发表于 2007-12-24 09:12  资料  个人空间  短消息  加为好友 
linux下编译错误,请大虾帮忙看看!谢谢了!

suselinux9下编译sybase的db程序是报错:
cc  -I. -I/home/sybase/OCS-12_5/include bulkcopy.c /home/sybase/OCS-12_5/lib/libsybdb.a -lm -o bulkcopy
/home/sybase/OCS-12_5/lib/libsybdb.a(dbcursut.o)(.text+0xc7): In function `db__crs_search_phrase':
: undefined reference to `__ctype_tolower'
/home/sybase/OCS-12_5/lib/libsybdb.a(dbcursut.o)(.text+0x133): In function `db__crs_search_phrase':
: undefined reference to `__ctype_tolower'
/home/sybase/OCS-12_5/lib/libsybdb.a(intslist.o)(.text+0x38a): In function `intl__strblist':
: undefined reference to `__ctype_b'
/home/sybase/OCS-12_5/lib/libsybdb.a(intnent.o)(.text+0xd2): In function `intl_nextentry':
: undefined reference to `__ctype_b'
/home/sybase/OCS-12_5/lib/libsybdb.a(intnent.o)(.text+0x120): In function `intl_nextentry':
: undefined reference to `__ctype_b'
/home/sybase/OCS-12_5/lib/libsybdb.a(intnent.o)(.text+0x1c8): In function `intl_nextentry':
: undefined reference to `__ctype_b'
/home/sybase/OCS-12_5/lib/libsybdb.a(intnval.o)(.text+0x457): In function `intl_nextvalue':
: undefined reference to `__ctype_b'
/home/sybase/OCS-12_5/lib/libsybdb.a(intnval.o)(.text+0x481): more undefined references to `__ctype_b' follow
collect2: ld returned 1 exit status
make: *** [bulkcopy] Error 1
这是一个sybase的样例程序,在suselinux8下编译正常。用的都是原来的makefile,不知道是啥原因,谁知道请告知。

顶部
freestream
荣誉斑竹
Rank: 14Rank: 14Rank: 14Rank: 14



UID 86
精华 1
积分 85
帖子 163
活跃指数 1
LU金币 6028 个
LU金条 0 个
阅读权限 200
注册 2003-9-22
 
发表于 2007-12-27 14:33  资料  个人空间  短消息  加为好友 
gcc 版本不对。
你需要老版本的gcc,例如gcc3.2,可以下载源码编译,然后加到改环境变量PATH里,把其路径放在/usr/bin的前面。

顶部
 



当前时区 GMT+8, 现在时间是 2008-9-5 15:33
乐悠LoveUnix论坛-京ICP备05005823号

Thanks to Discuz!  © 2001-2007    Power by LoveUnix.net
Processed in 0.052440 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - 乐悠LoveUnix - Archiver