我最近在用一个线性运算的库spooles,按照说明make编译生成库文件libspooles.a,也没出什么错误,但是在链接程序的时候无论如何都无法成功,总是提示某函数为“未定义的引用”。用nm libspooles.a显示内容的片段如下
SemiImplMtx_IO.o:
U fprintf
U FrontMtx_writeForHumanEye
U fwrite
U InpMtx_writeForHumanEye
U IV_writeForHumanEye
00000000 T SemiImplMtx_writeForHumanEye
U stderr
SemiImplMtx_solve.o:
U DenseMtx_copyRow
U DenseMtx_free
U DenseMtx_init
U DenseMtx_new
U DenseMtx_writeForHumanEye
U DenseMtx_writeForMatlab
U DVzero
U fflush
U fprintf
U FrontMtx_solve
U fwrite
U gettimeofday
U InpMtx_nonsym_mmm
U InpMtx_nonsym_mmm_H
U InpMtx_nonsym_mmm_T
U IV_sizeAndEntries
00000000 T SemiImplMtx_solve
U stderr
00000000 b TV
00000008 b TZ
SemiImplMtx_util.o:
U FrontMtx_nSolveOps
U fwrite
00000000 T SemiImplMtx_stats
U stderr
SolveMap_basics.o:
U exit
U fprintf
U free
U IVfree
U malloc
000000ed T SolveMap_clearData
0000019b T SolveMap_free
00000000 T SolveMap_new
00000062 T SolveMap_setDefaultFields
U stderr
有哪位知道这可能是怎么回事吗 |