cling/test/LibraryCall
Vassil Vassilev 561e905b24 Use the dyld to show more meaningful message when a symbol is missing.
The dynamic library manager's dyld can search a symbol in the library path.
This patch uses that functionality to aid the 'unresolved while linking'
diagnostics.

Now we get:

cling -L lib/

****************** CLING ******************
* Type C++ code and press enter to run it *
*             Type .q to exit             *
*******************************************
[cling]$ extern int gErrorIgnoreLevel;
[cling]$ gErrorIgnoreLevel
IncrementalExecutor::executeFunction: symbol 'gErrorIgnoreLevel' unresolved while linking [cling interface function]!
Symbol found in '/.../lib/libCore.so'; did you mean to load it with .L /.../lib/libCore.so ?
[cling]$
2021-05-08 20:59:07 +02:00
..
call_lib.c Add CLING_EXPORT macro. 2016-12-12 12:44:09 +01:00
call.C Add CLING_EXPORT macro. 2016-12-12 12:44:09 +01:00
callable_lib.C Add CLING_EXPORT macro. 2016-12-12 12:44:09 +01:00
library_path.C Use the dyld to show more meaningful message when a symbol is missing. 2021-05-08 20:59:07 +02:00