ChinaUnix.net
相关文章推荐:

编译内核时出现undefined reference to addmtdpartitions

一个c程序,用到pow、time、rand和srand等函数,在用gcc-CCORE(同样是gcc,只不过是针对原mororola的核mcore的),用-c参数编译成.o文件。但在连接的候,出现undefined reference to 'rand'等错误。于是在连接指明库-lm,并且指明路径,这出了原先那些错误外,还有更多错误,比如:/export/home/…/lib/lib.a(e_pow.o):In function '__ieee754_pow':e_pow.o(.text_0x300):undefined reference to '__adddf3' 同样的程序,在...

by jimobaobao - C/C++ - 2003-06-10 12:03:53 阅读(3940) 回复(13)

相关讨论

定义了个模板类 simdb.h template class CHash { public: CHash(); ~CHash(); void Clear(); ENUM_HASH_RETURN Save(const CKeyValuePair & NewEntry); ENUM_HASH_RETURN Find(const CKey & TargetKey, CValue & TargetVal); ENUM_HASH_RETURN Update(const CKey & TargetKey, const CValue & NewVal); ENUM_HASH_RETURN Delete(const CKey & TargetKey); ENUM_HASH_RETURN Query(const CKey * TargetK...

by 生存之路 - C/C++ - 2008-01-16 22:25:20 阅读(5760) 回复(10)

我在终端下对程序进行链接后出现了以后提示: /usr/acis/bin/linux_so_debug/libSpaHBridge.so:undefined reference to 'Hc_Show_Shell_Size' 程序在编译能通过,但是在链接出现以上的问题,请大家帮一下忙啊!!!!

by liufeinwpu - 程序开发 - 2006-05-16 09:37:06 阅读(2185) 回复(3)

我定义了一个外部变量msgfd, 然后在另外一个文件log.c中(已经做声明extern msgfd)引用msgfd,请问为什么会出现undefined reference to `msgfd',谢谢大家 :?

by 地下工作者 - C/C++ - 2003-07-04 09:06:19 阅读(2336) 回复(8)

出现undefined reference to这个错误怎么办? main2 是lzma压缩源代码中的函数(我使用lzma源代码编译而不是连接系统中的库文件),我看了很多帖子还是解决不了问题,extern "c"也试了试,但是还是失败了。 我想听听大家有什么好的建议么? 谢谢大家了 artcodes@lenny:~/workspace/Mpi/C-C++$ make mpicxx -Wall -I inc/ -c src/LzmaPPU.cpp -o obj/LzmaPPU.o src/LzmaPPU.cpp: In function ‘int main(int, char**)’: src/LzmaP...

by art_codes - C/C++ - 2009-05-09 11:19:13 阅读(1756) 回复(6)

#include #include #include #include #include int main(int argc,char *argv[]) { int fd1,fd2,n; char buf[512],ch='\n'; if(argc<=2) { printf("the argc is too feww!"); exit(1); } fd1=open(argv[1],0); fd2=create(argv[2],0644); while((n=read(fd1,buf,512))>0) write(fd2,buf,n); close(fd1); close(fd2); return 0; } 输入gcc -o ./exe/fcp fcp.c 后出现...

by happytor - C/C++ - 2008-10-18 02:13:17 阅读(2564) 回复(8)

make config和make dep都没有问题,就是在最后一步make的出现 /home/ucosii4skyeye/samples/ucos_test/../../lib/skyeye_printf.c:110: undefined reference to `isdigit' skyeye_printf.o: In function `skyeye_printf': /home/ucosii4skyeye/samples/ucos_test/../../lib/skyeye_printf.c:156: undefined reference to `isdigit' make: *** [ucos_test.elf] Error 1 提示的是 undefined reference to `isdigit' 但isdigit是包...

by poize - 内核/嵌入技术 - 2006-11-01 12:12:08 阅读(1112) 回复(3)

编译一个可以读写mysql的c程序,出现undefined reference to `mysql_store_result' 错误,一般是什么原因?

by xyxia - Linux论坛 - 2005-01-19 19:28:24 阅读(583) 回复(4)

我已经#include ;, 调用pthread_create; 编译undefined reference to `pthread_creat, 大家指点一二

by banditind - C/C++ - 2003-06-27 17:29:48 阅读(1857) 回复(2)

zl@sunnydog:~$ psql /usr/lib/postgresql/8.3/bin/psql: symbol lookup error: /usr/local/lib/libreadline.so.5: undefined symbol: PC os:ubuntu 最开始直接用代码编译按装提不 libreadline这个库找不见,后来手动编译安装libreadline后还是不能成功。 直接apt-get install postgresql,安装成功,但是用psql连接是却出现了上述的问题,请问是什么原因? [ 本帖最后由 sunnydogzhou 于 2008-9-16 23:18 编辑 ]

by sunnydogzhou - PostgreSQL - 2008-09-16 22:30:03 阅读(2876) 回复(0)

编译连接都没有问题。但是用dlopen却会出现undefined symbol错误。 flag从RTLD_NOW换成RTLD_LAZY也不行。 请问可能是什么原因呢?

by prc - C/C++ - 2005-09-01 15:35:11 阅读(1501) 回复(3)