王子的惆怅 发表于 2011-3-24 09:11:38

cunit使用出错

:'( 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'
不知道是怎么回事,还请多指教!
兄弟是刚进来的,分值不多,还请见谅!

王子的惆怅 发表于 2011-3-24 09:54:35

make: Nothing to be done for `all'.
页: [1]
查看完整版本: cunit使用出错