Linker Error: undefined reference to `internal'

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 10 21:05:09 PDT 2016


On 10/10/2016 3:20 PM, jython234 wrote:
> I've tracked it down to two lines (which are the same):
>
> private SyncLock lock = new SyncLock();
>
> SyncLock is just an empty class which I use to construct objects for use in
> "synchronized" blocks (not sure if this is the right way to do this). Apparently
> if I move the initialization to the constructor there are no linker errors.

You can use obj2asm to examine the object files to see what is different between 
the two cases.


More information about the Digitalmars-d mailing list