can't link a code, is it a bug or my fault?

Iliya iliya.grachev at gmail.com
Thu Mar 11 17:29:01 UTC 2021


On Thursday, 11 March 2021 at 17:25:35 UTC, Ali Çehreli wrote:
> On 3/11/21 8:41 AM, Iliya wrote:
>
> > I am using dmd 2.094.1 on linux
>
> Your program links fine for me with 2.094.2 on Linux.
>
> Ali

Thank you, Ali!

I also played with it on playground. Seems that it is a bug.
The compilation results:

Up to      2.093.1: Success and no output
Since      2.094.1: Failure with output:
-----
onlineapp.o: In function 
`_D9onlineapp__T4findTaTSQw__T7IsEqualTaZQlZQBcFNaNbNiNfIAaIaQBlZm':
/sandbox/onlineapp.d:15: undefined reference to 
`_D9onlineapp__T7IsEqualTaZQl6opCallFNaNbNiNfIaIaZb'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
-----


More information about the Digitalmars-d-learn mailing list