LDC 1.21.0-beta1
Johan
j at j.nl
Sun Mar 22 12:27:21 UTC 2020
On Sunday, 22 March 2020 at 12:00:58 UTC, Peter Jacobs wrote:
>
> I am seeing a linker error with this beta. Same compilation
> works with 1.20.1.
>
> ldc2 -w -g -d-debug -d-version=flavour_debug
> -d-version=with_libplot -dip1008 -I.. -I../nm -I../util
> -I../geom -I../grid_utils -I../extern/gzip
> -d-version=multi_species_gas -d-version=multi_T_gas
> -d-version=MHD -d-version=turbulence -of=e4shared \
> -d-version=tecplot_unavailable \
> main_with_rev_string.d \
> ----- long lines snipped ------
> ../gasdyn/gasflowexception.d ../gasdyn/idealgasflow.d
> ../gasdyn/gasflow.d ../gasdyn/luaidealgasflow.d
> ../gasdyn/luagasflow.d ../nm/luabbla.d \
> -L-L../../extern/lua-5.1.4/lib -L-lplot -L-llua -L-ldl
> e4shared.o:luabbla.d:_D7simcore12__ModuleInfoZ: error:
> undefined reference to '_D6kdtree12__ModuleInfoZ'
> collect2: error: ld returned 1 exit status
> Error: /usr/bin/cc failed with status: 1
Are you sure you are linking with that `kdtree` module?
Upgrading the compiler often uncovers latent linking dependency
bugs (possibly 1.20 optimizes / codegens things slightly
different).
-Johan
More information about the Digitalmars-d-announce
mailing list