Mercurial > hg > vamp-plugin-sdk
comparison src/vamp-hostsdk/Files.cpp @ 535:45b2bd15d8ae
Show error code if library can't be loaded
author | Chris Cannam |
---|---|
date | Tue, 03 Mar 2020 11:47:52 +0000 |
parents | da86fb0bccb3 |
children |
comparison
equal
deleted
inserted
replaced
533:a7e6d747fd3f | 535:45b2bd15d8ae |
---|---|
171 #else | 171 #else |
172 handle = LoadLibrary(path.c_str()); | 172 handle = LoadLibrary(path.c_str()); |
173 #endif | 173 #endif |
174 if (!handle) { | 174 if (!handle) { |
175 cerr << "Vamp::HostExt: Unable to load library \"" | 175 cerr << "Vamp::HostExt: Unable to load library \"" |
176 << path << "\"" << endl; | 176 << path << "\": error code " << GetLastError() << endl; |
177 } | 177 } |
178 #else | 178 #else |
179 handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_LOCAL); | 179 handle = dlopen(path.c_str(), RTLD_LAZY | RTLD_LOCAL); |
180 if (!handle) { | 180 if (!handle) { |
181 cerr << "Vamp::HostExt: Unable to load library \"" | 181 cerr << "Vamp::HostExt: Unable to load library \"" |