Alan Benett
May 4th, 1999, 01:06 PM
Hi!
How can I use the STL of SGI with Visual C++ 4.0.
When I just include the header-files like #include <vector.h>
I get a lot of errors.
Can anybody give me a hint?
Regards.
Alan!
Paul McKenzie
May 4th, 1999, 04:47 PM
Don't you need to customize one of the headers in the SGI implementation to have it work for MSVC 4.0? I haven't looked at it, but I bet that you need to #define (or #undef) some constants. Things such as member templates, default template parameters, etc. may not have been implemented in VC 4.0, but by default SGI STL may use them.
You may see a constant like
#define USE_DEFAULT_TEMPLATE_PARMS
or something like that within one of the SGI headers. This is what needs to be changed.
I don't think you can just drop SGI STL into your application and have it work "right out of the box".
Regards,
Paul McKenzie