From: John P. <jo...@ma...> - 2000-11-17 05:54:14
|
I moved the framework for loading directories into XPPath and Path objects. I need to seperate out the XPPath interface from implementaion. You can still use regular strings to load specific libs for backwards compatability. Path takes a name of a directory or a file name. I will implement wildcard searches later. An example on how to use the Path object is in complexmenu. It is only implemented under linux right now. Path.cpp must be created for each platform (though I suspect that the HPUX and linux versions are similar). I tried to no avail to make it as easy as Path p = "plugins"; to use. I overloaded the assignment operator and gave the base XPPath class XPPath::XPPath( string ) constructors (and const char *) but it still didn't want to compile. Oh well. We can add another platform to the lists of hosts as I have gotten it to compile on FreeBSD. Turns out that the libdl functionality is located in the stdc lib on FreeBSD (and I suspect otherBSD's) I will get around to updating the config so that it checks for libdl and then for the dl functions in libc. I will also change the linux target to unix_so, so I don't piss off the BSD guys, who I find charming but often annoying (Just kidding) . How about that - SOMELib on Apple OS X's Darwin :-) I wonder if they use .so's? Hehe. Sun Solaris is next on my list. -Quinticent |