On Fri, Sep 07, 2007, Pierangelo Masarati wrote: > Adrian Chadd wrote: > > > Maybe one of the goals for squid-3.1 should be runtime loadable dyanmic > > modules for "stuff". > > > > (Although I'm not sure how well that'd work with C++ and its symbol > > munging..) > > I've some experience in this sense, <http://www.aero.polimi.it/~mbdyn/>.
[snip stuff] > The interface is minimal and it's pure C. Of course, it needs reverse > linking, so, for example, the function RegisterSetMyData() and any other > function the module needs to see must be either exported by the main to > the module (the undocumented "-rdynamic" option to gcc), or placed in > yet another library that is linked both by the modules and by the main > object. Ok, how's that work for exposing C++ interfaces in Squid to external modules? Things could get quite ugly if you're going C++ -> C -> C++.. Adrian
