Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the error message when dlopen fails. #5537

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion source/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,13 @@ void possibly_load_shared_libs (const std::string &parameters)
ExcMessage (std::string("Could not successfully load shared library <")
+ filename + ">. The operating system reports "
+ "that the error is this: <"
+ dlerror() + ">."));
+ dlerror() +
">. Did you call 'cmake' and then compile "
"the plugin library you are trying to load, and did "
"you check the spelling of the library's name? "
"Are you running ASPECT in a directory so that the path "
"to the library in question is as specified in the "
".prm file?"));

// check again whether the list of shared libraries is
// internally consistent or whether we link with both the
Expand Down