From: Paul S. <pau...@vi...> - 2003-06-16 11:37:13
|
Hello again, I should add details of the vcl header files modified and added to make it work. As the use of stlport is supposed to be independent of the compiler and platform, the config files <vcl_config_compiler.h vcl_config_headers.h vcl_config_manual.h vxl_config.h> are left unchanged when using stlport. (This is a change from that stated in my previous email) This also means that "#define VCL_STLPORT" cannot be placed in an always-included file such as vcl_compiler.h, as stlport cannot have its own vcl_compiler.h, so a compile flag -D 'VCL_STLPORT' needs to be added. (Any better ideas for forcing this symbol definition without polluting the command line would be appreciated) The only modifications are to vcl/vcl_complex.h and vcl/vcl_cmath.h, which switch on VCL_STLPORT (before other switches) to include stlport/vcl_complex.h and stlport/vcl_cmath.h. These are attached below, and seem to work with vc6 and vc71. Any comments appreciated. Paul. <<vcl_complex.h>> <<vcl_cmath.h>> > -----Original Message----- > From: Paul Smyth > Sent: 06 June 2003 14:47 > To: Vxl-maintainers (E-mail) > Subject: STLPort with VXL > > Hi folks, > > We've been using stlport (www.stlport.org) for a few years, > and have found it portable, fast (has a small object > allocator which speeds lists, maps up significantly) and > great for catching bugs (debug checking iterators etc.). So I > have a set of mods to vxl which work with vc60 and vc71 (and > some success with gcc 3.2 under cygwin). As stlport supports > a very wide range of compilers and OSs, it in some sense > replaces vcl, so vcl can just defer responsibility for > portability to stlport. > > At the moment, I have a set of mods to $root/UseVXL.cmake, > $root/vcl/CMakelists.txt, vcl_cmath.h, vcl_complex.h, > vcl_cstdlib.h, and a set of new stlport-specific files in > $root/vcl/config.stlport and $root/vcl/stlport ( vcl_cmath.h, > vcl_complex.h, vcl_cstdlib.h ). > > I have a few questions/ things maybe requiring comment: > - Is this useful to vxl users at large to have this support? > - Most of the changes are to $root/UseVXL.cmake - is that the > appropriate place for them? > - Comments on my mods to $root/UseVXL.cmake - see end of email > - at the moment, I'm hoping that there can be one vcl > configuration that works for stlport irrespective of > platform. This might not hold for platforms that I haven't tried. > > > Obviously, I have gone to no trouble to get anything building > on any other platforms (most likely to try linux/gcc next), > so there is more work to do to get other platforms linking to > the stlport version of the iostream libs. > > I've found stlport very useful, and would like to commit > these changes. I just need to know whether the current state > of the mods is acceptable for a commit. > > Paul. > This e-mail, and any attachment, is confidential. If you have received it in error, please delete it from your system, do not use or disclose the information in any way, and notify me immediately. |