Mercurial > octave-nkf
diff liboctave/oct-shlib.cc @ 8272:ed5811a1ec8f
Added output about why a library load fails on OSX
author | jpswensen@compsci34-82-1651.compscidhcp.jhu.edu |
---|---|
date | Thu, 23 Oct 2008 15:22:51 -0400 |
parents | 095b3e4d64e9 |
children | eb63fbe60fab |
line wrap: on
line diff
--- a/liboctave/oct-shlib.cc Thu Oct 23 13:00:46 2008 -0400 +++ b/liboctave/oct-shlib.cc Thu Oct 23 15:22:51 2008 -0400 @@ -611,8 +611,16 @@ } else { - (*current_liboctave_error_handler) - ("couldn't link module %s", file.c_str ()); + NSLinkEditErrors ler; + int lerno; + const char *file2; + const char *errstr = 0; + + NSLinkEditError (&ler, &lerno, &file2, &errstr); + + if (errstr) + (*current_liboctave_error_handler) + ("%s: %s", file.c_str (), errstr); } } else