51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 3079|回复: 1
打印 上一主题 下一主题

[求助] cunit使用出错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-3-24 09:11:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
cunit是不是要在root用户下用啊?
我们项目组在做一个新项目,其中要用的cunit,我是新手,于是这个任务就交给了我,我用的是公司的linux服务器下的一个用户,并不是root用户,用的时候就出现了下面的错误:Main.c.text+0x1f): undefined reference to `CU_initialize_registry'
Main.c.text+0x5c): undefined reference to `CU_set_output_filename'
Main.c.text+0x61): undefined reference to `CU_list_tests_to_file'
Main.c.text+0x66): undefined reference to `CU_automated_run_tests'
Main.c.text+0x6b): undefined reference to `CU_cleanup_registry'
/tmp/cchNvv8q.o: In function `testIQJ':
testcase.c.text+0x38): undefined reference to `CU_assertImplementation'
testcase.c.text+0x6f): undefined reference to `CU_assertImplementation'
/tmp/cchNvv8q.o: In function `testIGJ':
testcase.c.text+0xad): undefined reference to `CU_assertImplementation'
testcase.c.text+0xe4): undefined reference to `CU_assertImplementation'
testcase.c.text+0x11c): undefined reference to `CU_assertImplementation'
/tmp/cchNvv8q.o:testcase.c.text+0x15a): more undefined references to `CU_assertImplementation' follow
/tmp/cchNvv8q.o: In function `AddTests':
testcase.c.text+0x1ea): undefined reference to `CU_get_registry'
testcase.c.text+0x20d): undefined reference to `CU_is_test_running'
testcase.c:(.text+0x234): undefined reference to `CU_register_suites'
testcase.c:(.text+0x23d): undefined reference to `CU_get_error_msg'
不知道是怎么回事,还请多指教!
兄弟是刚进来的,分值不多,还请见谅!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2011-3-24 09:54:35 | 只看该作者
make[3]: Nothing to be done for `all'.
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-4-28 00:30 , Processed in 0.085374 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表