From -5188720205869204078
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,f9ed79ff23b2bf91
X-Google-Attributes: gidf78e5,public
From: "Thomas T. Veldhouse" <veldy@visi.com>
Subject: Re: VC5 and STL question
Date: 1998/10/09
Message-ID: <pg5T1.266$525.776249@ptah.visi.com>#1/1
X-Deja-AN: 399629896
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <361346BC.6D242DCE@tor.ber.hs.nki.no> <kF_R1.6006$1f.1573535@news.tpnet.pl> <361a822f.164993057@news-read.fnsi.net>
X-Original-Date: Thu, 8 Oct 1998 10:56:18 -0500
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: -
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANh2peuEDnX0m9pzZAQFvGwF+Owghhzvgx18s7WaqKRqc2y/ZTaikwYAI L6nZSjFUzCa1OebPzu9LORL9CHHUpiIJ =muDt
NNTP-Posting-Date: Thu, 08 Oct 1998 10:56:05 CDT
Newsgroups: comp.std.c++

Bill Wernet wrote in message <361a822f.164993057@news-read.fnsi.net>...
>I have been trying to use the SGI STL with VC++ 6.0.
>
>The program I am compiling contains a line:
>
>vector<int> aVector;
>
>I get the following error when trying to compile the code.
>
>E:\Projects\Common\sgistl\type_traits.h(158) : error C2011:
'__type_traits<int>'
>: 'struct' type redefinition
>E:\Projects\Common\sgistl\type_traits.h(341) : error C2011:
'_Is_integer<int>' :
>'struct' type redefinition
>
>What am I doing wrong?
>

I had this problem too when you use the standard <iostream> from Visual C++
standard library.  It does not mix well with SGI STL.  You should probably
try <iostream.h>  I think that got around the problem for me.

Tom Veldhouse
veldy@visi.com
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



