gdc 12.1: undefined references when linking separately compiled files
kdevel
kdevel at vogtner.de
Sat May 28 14:37:07 UTC 2022
On Saturday, 28 May 2022 at 13:55:09 UTC, Tejas wrote:
> On Saturday, 28 May 2022 at 13:12:46 UTC, kdevel wrote:
>> I am trying to build a project with GDC. It successfully
>> compiles with dmd and ldmd2. When I use gdc in one go the
>> binary is successfully build:
>>
>> [...]
>
> Is seperate compilation working successfully for dmd and ldc?
dmd:
```
$ dmd -c ppinsta.d
$ dmd -c parser.d
$ dmd -of=ppinsta ppinsta.o parser.o
$ ./ppinsta
[]
```
(checking ldc/ldmd2 later)
> The only bug I know of regarding seperate compilation is
> https://issues.dlang.org/show_bug.cgi?id=20641
More information about the Digitalmars-d-learn
mailing list