No line numbers in compiler error messages

Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 24 11:44:46 PDT 2015


On 4/24/15 2:24 PM, Jesse Phillips wrote:
> On Friday, 24 April 2015 at 17:20:12 UTC, John Nixon wrote:
>> I am using dmd v2.067.0 on Mac OSX with Terminal and I found the lack
>> of line numbers surprising.
>> Is there something simple I am doing wrong? Do any of the switches on
>> the command line do this?
>>
>> BTW I only found out about D a couple of weeks back. It seems to be
>> very impressive!
>>
>> John Nixon
>
> Without debug symbols the line numbers aren't available (IIRC). Add -g
> to your compile switches.

That's only for exceptions. Compiler always gives line numbers.

-Steve


More information about the Digitalmars-d-learn mailing list