DMD Mac and linking with frameworks

Jacob Carlborg doob at me.com
Thu Mar 12 11:32:51 PDT 2009


Anders F Björklund wrote:
> Jacob Carlborg wrote:
> 
>> The problem is if compile like this for example: "dmd -L-framework 
>> Carbon main.d" dmd complains that it can't find Carbon.d. It seems 
>> that it takes everything as a D source file if it doesn't recognize it 
>> as a compiler switch.
> 
> Seems it needs the -L flag on each: dmd -L-framework -LCarbon main.d
> 
> Because -Xlinker is being used, "-Wl,-framework,Carbon" doesn't work.
> 
> --anders

It worked. Thanks. It's a little annoying that all three compilers have 
to use different commands for this.



More information about the Digitalmars-d mailing list