From: John P. <jo...@ma...> - 2000-11-21 05:38:03
|
Thomas Matelich wrote: > OOPS! Sorry about that, thought it would be faster. _S_IFDIR *should* be > in <sys/stat.h>. I figured since it is on Windows and HPUX that it would > be in Linux. I don't think it would be a problem to change it back if you > want. > Well since they are platform specific we can just change them for linux or define _S_IFDIR under linux. > > On a related note, do we want to change Path so that it only searches for > dyn libs? There could be problems (besides efficiency) if people have the > lib.1.1, lib.1, lib.so scheme I think. > Hmmm... Well I think that if a developer is using SOMELib they wouldn't load their whole /usr/lib directory. The directory loading is for use when loading from say a plugin directory that only has lib.so. Remeber that SOMELib takes care of versioning (Perhaps we should change versioning to three int's for comparison sake - ie major, minor and patch). I plan to offer wildcard matching and text file loading (the textfile would specify what libs to load) in the future so that a developer could fine tune their lib loading. Remember, C++ gives you the ability to format your HD, go into infinite loops, etc. It doesn't meen a developer will use these "features". But they are there if a developer is crazy enough to want them. I can see it now :-) Dear somelib-devel, I point SOMELib to /usr/lib so that is may find my libraries but when I run my program it just seems to suck up all my resources and then crashes for no reason. PS This also happens when I execute this piece of code: for( int i=0; i>=0;i++) new myObject(); I just don't understand. -Quinticent > > John Palmieri wrote: > > > I see you changed the directory checking method of SOME::Path. For some > > reason _S_IFDIR is not defined on my system. Where is this defined? > > > > -Quinticent > > > > _______________________________________________ > > somelib-devel mailing list > > som...@li... > > http://lists.sourceforge.net/mailman/listinfo/somelib-devel > > -- > Thomas O Matelich > Senior Software Designer > Zetec, Inc. > sos...@us... > tma...@ze... > > _______________________________________________ > somelib-devel mailing list > som...@li... > http://lists.sourceforge.net/mailman/listinfo/somelib-devel |