Allen Bierbaum wrote: > Andreas Zieringer wrote: > >> Hi Allen, >> >> hmm perhaps I don't get this but this is already possible with OpenSG 1.x. >> >> > I don't think I clearly said why we were thinking about this. I know I > could do this in my applications, but I wanted to see if there was > interest in having OpenSG use it for it's own libraries. > > As part of OpenSG 2.0, it looks like there has been an effort to break > things up into smaller libraries. This good because it makes the > compile time faster and makes things a little more modular. But it also > means that applications need to know all the libraries they need to link > against.
Windows has the concept of automatic linking to libraries during compilation (a reference to xxx.lib is inserted in the object file so that the linker knows that it should reference it). Could that technique be useful for part of this as well? (i.e, things for which the os-loader need to resolve symbols upon load.) Boost uses this technique quite successfully, so perhaps it is avaiable on other platforms as well? That would remove the user having to link anything manually, just to ship with the right dll's, which is in the spirit of this proposal? Purely dynamic/optional stuff (such as format and image loaders, or core-types which are never interfaced directly) could certainly benefit from runtime (aka plugin or application controlled) loading. That would make it easy to fulfill Dirk's plan on shipping everything then building only what is possible (i.e. that which has it's dependencies installed.) >> My own image and geometry loaders, chunks, nodes whatever are compiled >> in several shared libraries. Now just link your app against this shared >> libraries or if your app has no dependency to the shared library (e.g. >> image or geometry loaders) just load it via dlopen. >> >> > Agreed, this is how we do it in our applications. Using this for OpenSG > internally would be nice too. Agreed. That's how we also do it. :) /Marcus ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users