I haven't been able to get the file line numbers to work with dmalloc, but apparently there is a patch out there that makes this feature work. It should have been posted somewhere in the forum at http://groups.yahoo.com/group/dmalloc Script started on Mon Sep 29 16:29:14 2003 /var/local/jp/test/dmalloc-5.2.2/test$ g++ -DDMALLOC -I.. -L.. wrong1.cc ../libd mallocxx.a In file included from /lusr/gnu/include/g++-v3/bits/std_cstdlib.h:41, from /lusr/gnu/include/g++-v3/bits/stl_algobase.h:73, from /lusr/gnu/include/g++-v3/bits/std_memory.h:49, from /lusr/gnu/include/g++-v3/bits/std_string.h:43, from /lusr/gnu/include/g++-v3/bits/localefwd.h:42, from /lusr/gnu/include/g++-v3/bits/std_ios.h:43, from /lusr/gnu/include/g++-v3/bits/std_ostream.h:39, from /lusr/gnu/include/g++-v3/bits/std_iostream.h:40, from /lusr/gnu/include/g++-v3/iostream:31, from wrong1.cc:3: /usr/include/stdlib.h:527: parse error before `)' token /usr/include/stdlib.h:527: `void*dmalloc_malloc' redeclared as different kind of symbol ../dmalloc.h:200: previous declaration of `void* dmalloc_malloc(const char*, int, unsigned int, int, unsigned int, int)' /usr/include/stdlib.h:527: initializer list being treated as compound expression /usr/include/stdlib.h:529: parse error before `)' token /usr/include/stdlib.h:529: parse error before `)' token /usr/include/stdlib.h:530: redefinition of `void*dmalloc_malloc' /usr/include/stdlib.h:527: `void*dmalloc_malloc' previously defined here /usr/include/stdlib.h:530: initializer list being treated as compound expression /usr/include/stdlib.h:536: parse error before `)' token /usr/include/stdlib.h:536: parse error before `)' token /usr/include/stdlib.h:536: `void*dmalloc_realloc' redeclared as different kind of symbol ../dmalloc.h:235: previous declaration of `void* dmalloc_realloc(const char*, int, void*, unsigned int, int, int)' /usr/include/stdlib.h:536: initializer list being treated as compound expression /usr/include/stdlib.h:538: parse error before `)' token /usr/include/stdlib.h:538: variable or field `dmalloc_free' declared void /usr/include/stdlib.h:538: `int dmalloc_free' redeclared as different kind of symbol ../dmalloc.h:266: previous declaration of `int dmalloc_free(const char*, int, void*, int)' /usr/include/stdlib.h:538: initializer list being treated as compound expression /usr/include/stdlib.h:542: declaration of `void cfree(void*) throw ()' throws different exceptions ../dmalloc.h:496: than previous declaration `void cfree(void*)' In file included from /lusr/gnu/include/g++-v3/bits/std_cstdlib.h:41, from /lusr/gnu/include/g++-v3/bits/stl_algobase.h:73, from /lusr/gnu/include/g++-v3/bits/std_memory.h:49, from /lusr/gnu/include/g++-v3/bits/std_string.h:43, from /lusr/gnu/include/g++-v3/bits/localefwd.h:42, from /lusr/gnu/include/g++-v3/bits/std_ios.h:43, from /lusr/gnu/include/g++-v3/bits/std_ostream.h:39, from /lusr/gnu/include/g++-v3/bits/std_iostream.h:40, from /lusr/gnu/include/g++-v3/iostream:31, from wrong1.cc:3: /usr/include/stdlib.h:551: parse error before `)' token /usr/include/stdlib.h:551: redefinition of `void*dmalloc_malloc' /usr/include/stdlib.h:530: `void*dmalloc_malloc' previously defined here /usr/include/stdlib.h:551: initializer list being treated as compound expression [1] /var/local/jp/test/dmalloc-5.2.2/test$ g++ --version 3.0.3 /var/local/jp/test/dmalloc-5.2.2/test$ exit Script done on Mon Sep 29 16:29:25 2003