From: Christian P. <cp...@se...> - 2004-12-20 11:46:40
|
Am Sonntag 19 Dezember 2004 15:04 schrieb stephan beal: > i was just bitten by this: > > factory.addPlugin("psql_mysql.so"); > works, but: > factory.addPlugin("psql_mysql"); > doesn't. > > That same problem shows up in C#'s approach to linking to DLLs. :( We should be better than C# and CommonC++ :-) I will implement it in experimental code base. > IMO, the .so is platform-specific, and therefor doesn't belong there. > The module loader should know the extension for the platform it's on > and automatically append it, if needed. See > s11n.net/download/#class_loader, src/path_finder.?pp for a class which > implements that behaviour. It should be possible to drop that (or > equivalent) right into the module loader's search routine. See > src/class_loader.cpp, and grep for ".dll" to see how it's used. I will have a look at it. > :) Regards, Christian |