dub does not correctly link on Macbook Pro 2019 (intel)

Alexander poneomenos at gmail.com
Sun Aug 20 02:15:44 UTC 2023


On Sunday, 20 August 2023 at 01:12:56 UTC, Kyle Ingraham wrote:
> On Saturday, 19 August 2023 at 22:53:53 UTC, Sergey wrote:
>> On Saturday, 19 August 2023 at 21:35:25 UTC, Alexander wrote:
>>> Completely new to D, and when trying to setup the toolchain,
>>
>> Could you please specify the versions of macOS and DMD?
>> Probably DMD is broken for macOS - could you try to use LDC?
>>
>> Maybe this thread is relative to the problem: 
>> https://github.com/ldc-developers/ldc/issues/3864
>
> I think that thread is where I originally found the bandaid I 
> described: 
> https://github.com/ldc-developers/ldc/issues/3864#issuecomment-963304679

Setting MACOSX_DEPLOYMENT_TARGET=12 allows dub to work with dmd.  
It's when I don't have it set, or set to 13 that I get those 
linker errors.  Maybe this would have been obvious to a C or C++ 
developer, but I do all my professional development on scala and 
python, and c# before that.  I now have 2 working D compilers, 
thank you for your help.


More information about the Digitalmars-d-learn mailing list