Dynamic Libraries
|
||
Working groups |
Blessed plots and figures |
Approving new results and publications |
Approval web pages - new results |
Approval web pages - new publications |
Mu2e Acronyn Dictionary |
Fermilab Meeting Rooms |
Fermilab Service Desk |
ReadyTalk : Home |
ReadyTalk : Help |
ReadyTalk : Toll Free Numbers |
The attached tar file holds a simple example program that attaches to a dynamic library, makes an instance of one of the classes found in that libary and uses that class. This is an example of what happens behind the scenes with the _plugin mechanism used by the framework.
To build and execute the example, copy the tar file to your own computer then issue the commands:
> tar xzf dynamic.tgz > cd dynamic > make > ./mainThis worked for me using SLF 4.6 on both 32 bit and 64 bit hardware. The output should be:
You are in the begining of main Constructor :: Base Constructor :: Derived Creating new object from library Constructor :: Base Constructor :: Derived Derived class function You are in the end of main Destructor :: Derived Destructor :: Base Destructor :: Derived Destructor :: BaseSo far there is no real documentation for this example. The basic steps found in the main program are:
Security, Privacy, Legal |