helpful runtime error messages
spir
denis.spir at gmail.com
Wed Dec 15 02:32:36 PST 2010
On Tue, 14 Dec 2010 13:44:27 -0500
Jesse Phillips <jessekphillips+D at gmail.com> wrote:
> spir Wrote:
>
> > Hello,
> >
> >
> > Am I the only one who gets, as only kind of runtime errors, spectacularly helpful messages like:
> >
> > int f () {return 0;}
> > void main () {
> > assert (f() == 1);
> > }
> > ==>
> > spir at o:~/prog/d/Text$ ./__trials__
> > core.exception.AssertError at __trials__(44): Assertion failure
>
> That is the location of the assertion failure. The stack trace actually needs to have -L--export-dynamic as an argument this should be in the latest dmd.conf file already. Also compile with -gc will help, didn't seem to be required though.
-gc does not seems to change anything (symbols are still rather cryptic, with some mangling and hex codes). What is it supposed to do, actually?
Denis
-- -- -- -- -- -- --
vit esse estrany ☣
spir.wikidot.com
More information about the Digitalmars-d-learn
mailing list