You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ 93%]: linking.debug eyyc.exe
D:\mingw64\bin\x86_64-w64-mingw32-g++ -o build\windows\x64\debug\eyyc.exe build\.objs\eyyc\windows\x64\debug\examples\eyyc.c.obj -Wl,-rpath=. -Wl,-rpath=\usr\lib -Wl,-rpath=\usr\local\lib -Wl,-rpath=$ORIGIN -g
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: build\.objs\eyyc\windows\x64\debug\examples\eyyc.c.obj: in function `eyyc':
D:\\*****\\radicalite/examples/eyyc.c:18: undefined reference to `initPoly'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:19: undefined reference to `initPoly'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:22: undefined reference to `initRad'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:23: undefined reference to `Radsqrt'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:23: undefined reference to `addRad'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:23: undefined reference to `addRad'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:25: undefined reference to `_PolyIntReduce'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:26: undefined reference to `printPoly'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:32: undefined reference to `destoryPoly'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:36: undefined reference to `Radsqrt'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:36: undefined reference to `addRad'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:36: undefined reference to `subRad'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:37: undefined reference to `_PolyIntReduce'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:38: undefined reference to `printPoly'
D:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\\*****\\radicalite/examples/eyyc.c:44: undefined reference to `destoryPoly'
collect2.exe: error: ld returned 1 exit status
error: @programdir\core\main.lua:329: @programdir\actions\build\main.lua:148: @programdir\modules\async\runjobs.lua:322: @programdir\actions\build\kinds\binary.lua:53: @programdir\core\sandbox\modules\os.lua:378: execv(D:\mingw64\bin\x86_64-w64-mingw32-g++ -o build\windows\x64\debug\eyyc.exe build\.objs\eyyc\windows\x64\debug\examples\eyyc.c.obj -Wl,-rpath=. -Wl,-rpath=\usr\lib -Wl,-rpath=\usr\local\lib -Wl,-rpath=$ORIGIN -g) failed(1)
stack traceback:
[C]: in function 'error'
[@programdir\core\base\os.lua:973]:
[@programdir\core\sandbox\modules\os.lua:378]: in function 'execv'
[@programdir\modules\core\tools\gcc.lua:559]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]:
[@programdir\core\tool\linker.lua:221]: in function 'link'
[@programdir\actions\build\kinds\binary.lua:53]: in function 'callback'
[@programdir\modules\core\project\depend.lua:217]: in function 'on_changed'
[@programdir\actions\build\kinds\binary.lua:41]: in function '_do_link_target'
[@programdir\actions\build\kinds\binary.lua:83]:
[@programdir\actions\build\kinds\binary.lua:110]: in function '_link_target'
[@programdir\actions\build\kinds\binary.lua:138]: in function 'jobfunc'
[@programdir\modules\async\runjobs.lua:238]:
[C]: in function 'xpcall'
[@programdir\core\base\utils.lua:275]: in function 'trycall'
[@programdir\core\sandbox\modules\try.lua:117]: in function 'try'
[@programdir\modules\async\runjobs.lua:220]: in function 'cotask'
[@programdir\core\base\scheduler.lua:406]:
stack traceback:
[C]: in function 'error'
@programdir\core\base\os.lua:973: in function 'base/os.raiselevel'
(...tail calls...)
@programdir\core\main.lua:329: in upvalue 'cotask'
@programdir\core\base\scheduler.lua:406: in function <@programdir\core\base\scheduler.lua:399>
(*****是我在输出后手动遮蔽的目录,对问题无影响)
The text was updated successfully, but these errors were encountered:
Xmake 版本
v2.9.1+HEAD.0c79f6162
操作系统版本和架构
Windows 8.1
描述问题
我的xmake.lua如下
执行后部分输出如下:
在
target("eyyc")
中有add_deps("radicalite_shared")
继承动态库依赖,然而生成的编译命令中并没有-L
和-l
,linker也不会链接这个库,导致链接失败。在v2.7.5版本中似乎没有此问题。
期待的结果
linker能够链接通过add_deps依赖的动态库
工程配置
见“描述问题”
附加信息和错误日志
(
*****
是我在输出后手动遮蔽的目录,对问题无影响)The text was updated successfully, but these errors were encountered: