gdc 12.1: undefined references when linking separately compiled files
kdevel
kdevel at vogtner.de
Sat May 28 14:22:56 UTC 2022
On Saturday, 28 May 2022 at 14:03:13 UTC, Adam D Ruppe wrote:
> On Saturday, 28 May 2022 at 13:12:46 UTC, kdevel wrote:
>> gdc -o ppinsta ppinsta.o esah.o evaluate.o jsr.o jsw.o
>> parser.o ptvr.o stack.o testdatagenerator.o
>
> You might need to add -lgphobos or -lgphobos2 or whatever it is
> called too explicitly.
gdc -v -o ppinsta ppinsta.o parser.o
It says
[...]gcc-12.1/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.1.0/collect2 \
[...]ppinsta.o parser.o -Bstatic -lgphobos [...]
^^^^^^^^^
More information about the Digitalmars-d-learn
mailing list