CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    14

    SGI STL and Visual C++ 4.0

    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!


  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: SGI STL and Visual C++ 4.0

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured