From: Tom B. <tb...@ui...> - 2007-12-03 01:56:12
|
I'm still mucking around with this a bit. So no worries now, I'll see if I can't find a smarter way of going about this. -Tom On Sunday 02 December 2007 19:15:37 Tom Burdick wrote: > Its really not too hard to write a portable shared lib... well, more like > one that works on windows too, since its the odd ball I've seen so far... > > Anyways... > > #include <hydroportability/sharedlib.h> > > class SOEXPORT MyClass > > SOEXPORT void myfunc(); > > SOEXPORT int myvar; > > Anything that should be available to things loading the lib must have the > macro there. Feel free to rename the macro anytime. HydroDll works on > windows now as well. Once you've put the macro in for a class you don't > need to do it for any member vars/methods. > > I personally don't usually use windows for development work, except now > that I've been doing OpenGL related stuff its. Windows gives me a way to > see if its a driver bug (lots of those...) or a problem with my code. Very > handy. Lots of the OpenGL performance libs and tools are windows only too > unfortunately. > > -Tom > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: The Future of Linux Business White Paper > from Novell. From the desktop to the data center, Linux is going > mainstream. Let it simplify your IT future. > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > _______________________________________________ > Orca-robotics-devel mailing list > Orc...@li... > https://lists.sourceforge.net/lists/listinfo/orca-robotics-devel |