exceptions

Robert Clipsham robert at octarineparrot.com
Wed Feb 24 13:19:40 PST 2010


On 24/02/10 20:20, Ellery Newcomer wrote:
> Oooh! nice trick!
> Ah, it's '_d_throw at 4' and quotes help. Yahoo!
>
>
> Do I need to do anything special to get stack tracing to work? when I
> try to compile a simple program it barfs on me and gives
>
> undefined reference to `dladdr'
>
> from
>
> import tango.core.tools.TraceExceptions;
>
> void main(){
> int[] i = [1,2];
> int[] j = new int[3];
> j[] = i[];
> }
>
> oh well. Thanks a ton, I'm back in business now!

Add -L-ldl to your command line when compiling, it should be linked in 
anyway, apparently it isn't though. You may have to put it before tango 
in your command line, maybe not... if it doesn't work, play with its 
position until it does.


More information about the Digitalmars-d-learn mailing list