setenv W2_EXTENSION_LIBS hires:yourformat
The extension library should self-register. You can't use _init because it is currently broken on Linux due to crti.S exporting _init() as well. Here is one way to do it:
namespace{ struct HiresSelfRegister{ HiresSelfRegister() { call your factory functions here HiresIntroducer :: initialize(); } }; HiresSelfRegister myregisterer; }
Public Member Functions | |
bool | hasLoaded (const std::string &basename) const |
if basename="hires", this returns whether libhires.so has been loaded in. | |
bool | load (const std::string &basename) |
a way to programmatically force the load of new libraries. | |
~ExtensionLoader () | |
Static Public Member Functions | |
static ExtensionLoader & | instance () |
code::ExtensionLoader::~ExtensionLoader | ( | ) |
bool code::ExtensionLoader::hasLoaded | ( | const std::string & | basename | ) | const |
if basename="hires", this returns whether libhires.so has been loaded in.
static ExtensionLoader& code::ExtensionLoader::instance | ( | ) | [static] |
bool code::ExtensionLoader::load | ( | const std::string & | basename | ) |
a way to programmatically force the load of new libraries.