6678工程中包含了函数库,在编译链接时候出现错误:
errors encountered during linking;"6678_demo.out" not bulilt
Link failed,Check the Console window for details
unresolved symbol a,first referenced in ./test.obj
这个是链接设置的问题还是函数库的问题?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
6678工程中包含了函数库,在编译链接时候出现错误:
errors encountered during linking;"6678_demo.out" not bulilt
Link failed,Check the Console window for details
unresolved symbol a,first referenced in ./test.obj
这个是链接设置的问题还是函数库的问题?
conghu您好:
按照这个编译信息来看是由于你的 test.c 文件里面有个符号(或函数)没有定义导致的。
unresolved symbol a,first referenced in ./test.obj
编译器找不到这个符号(或函数)的定义,所以报错。
谢谢!
我的test.c文件中包含了a.h头文件,头文件中有a函数的定义啊,函数的实现在库文件中,所以应该不是符号定义的问题吧?
望给个详细解释!
conghu您好:
如果你确认了头文件是包含在include path里面的,那么请继续确认下你的库文件的路径是不是包含在link选项里面的file search path之中。
有可能是库文件路径没有被包含导致库文件没有被link到。
如果还不行可以贴图或者压缩工程发过来看看。谢谢!
库文件包含在include path里面了,但是出现的错误警告还是那些,由于种种原因不能将贴图或者工程压缩给您,实在抱歉,还有什么其他原因可能导致出现这些错误?谢谢
Andy Yin,您好!
我在C6678的工程中需要用到一个函数库,但是函数库是648的库,所以出现了我提出的错误,您在回复中提到“请问你为什么在C6678中使用C648的库呢,这样肯定会存在问题的,所以需要在生成库时使用C648,谢谢。“,我想问您的最后一句话”所以需要在生成库时使用C648“是什么意思?C6678工程可以适应C648的库吗?