Error message when trying to link single D file to produce exe

Cecil Ward cecil at cecilward.com
Sat Jun 10 04:03:09 UTC 2023


On Saturday, 10 June 2023 at 03:49:22 UTC, ryuukk_ wrote:
> Are you using ARM mac or Intel?
>
> If ARM try to add this: ``-arch arm64``
>
> If Intel try to add this: ``-arch x86_64``
>
> It shouldn't be needed tho, if you are using ARM mac, make sure 
> you downloaded the ARM version, and not the Intel one, 
> otherwise it'll run with Rosetta, wich i suspect is what the 
> issue is

I’m an ARM Mac. I tried your suggestion, different error:

cecil at Mac-mini ~ % ./ldc mac_5.d --link-internally -arch 
arm64ldc2: Unknown command line argument '-arch'.  Try: 
'/Users/cecil/ldc2-1.32.2-osx-arm64/bin/ldc2 --help'
ldc2: Did you mean '--march'?
cecil at Mac-mini ~ %


More information about the digitalmars-d-ldc mailing list