Undefined reference - built from source DMD

Nicholas Wilson iamthewilsonator at hotmail.com
Tue Sep 10 14:47:00 UTC 2019


On Tuesday, 10 September 2019 at 11:12:30 UTC, Stefanos Baziotis 
wrote:
> I don't if this the right group to post this.
>
> DMD built from source fails to link / find `main`. The error is:
> /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
> (.text+0x20): undefined reference to `main'
> collect2: error: ld returned 1 exit status
> Error: linker exited with status 1
>
> Does anyone know how this could have happened?

Is this you have built your own DMD and using it to compile a 
test program and you get that error, or you get that error trying 
to build DMD?


More information about the Digitalmars-d-learn mailing list