创建可执行文件时,我面临未定义的引用问题。
错误:
../build/kl/Release/test/maker/guibase.o: In function `decodeAddrList':
tree234.c:(.text+0xc): undefined reference to `ptritclStubsPtr'
tree234.c:(.text+0x20): undefined reference to `ptritclStubsPtr'
tree234.c:(.text+0x12c): undefined reference to `ptritclStubsPtr'
tree234.c:(.text+0x140): undefined reference to `ptritclStubsPtr'
构建命令: -
pkgs/gcc/v4.8.3/bin/gcc -L/usr/X11R6/lib -O2 -DUSE_FLEX -Wall -Wno-char-subscripts -fPIC -DLINUX -DG_DISABLE_CONST_RETURNS -fno-strict-aliasing -o ../build/kl/Release/test/bin/pure.exe -L../build/kl/Release/test/modules ../build/kl/Release/test/maker/constrfunc.TCL.o ../../build/kl/Release/test/maker/pvdbprocs.TCL.o .. ../build/kl/Release/test/maker/maker/memmaker.TCL.o .. ../build/kl/Release/test/maker/modules/libdenbase.a .. ../build/kl/Release/test/maker/guibase.o -lcdnviptcl8.4 -ldenbase -lglib-2.0 -ldenbase -lX11 -ldl -lm -lviputil -lvippli -lcdsCommonMT_sh -lpthread -L/home/dlb/extlibs/arm/lib
我在图书馆中定义了这个符号" libcdnviptcl8.4'在路径' / home / dlb / extlibs / arm / lib' 。但仍面临同样的问题。
符号: - readelf -s libcdnviptcl8.4.so | grep ptritclStubsPtr
636: 00000000000d8068 8 OBJECT GLOBAL DEFAULT 24 itclStubsPtr
1240: 00000000000d8068 8 OBJECT GLOBAL DEFAULT 24 ptritclStubsPtr
我在这里错过了一些东西吗?请帮忙
OP评论引用:
"由于一些隐私问题...我正在重命名符号..它是由我编辑的...这是错字...我刚刚纠正了它...:)"
即错误消息中的标识符和grep行以及grep行的输出已被手动更改。