From 2071516929068882191
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,f9ed79ff23b2bf91
X-Google-Attributes: gidf78e5,public
From: bill@jcc.com (Bill Wernet)
Subject: Re: VC5 and STL question
Date: 1998/10/07
Message-ID: <361a822f.164993057@news-read.fnsi.net>#1/1
X-Deja-AN: 398507546
Content-Transfer-Encoding: 7bit
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <361346BC.6D242DCE@tor.ber.hs.nki.no> <kF_R1.6006$1f.1573535@news.tpnet.pl>
X-Original-Date: Tue, 06 Oct 1998 21:07:39 GMT
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 907731268 4644 128.250.29.17 (7 Oct 1998 03:34:28 GMT)
Organization: -
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUANhrhMeEDnX0m9pzZAQFUGQF/dkJoDlOnyANBaqbUajZ/BuySBikrvyvA MCos/eVBikWvEPC5ca+wF1bxYBm4vmCB =YdsG
Mime-Version: 1.0
Reply-To: bill@jcc.com
NNTP-Posting-Date: 7 Oct 1998 03:34:28 GMT
Newsgroups: comp.std.c++

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?

Bill



Wojtek Surowka <WojtekS@aldec.katowice.pl> wrote:

>Bjorn Hamre <hamre@tor.ber.hs.nki.no> wrote in message
>361346BC.6D242DCE@tor.ber.hs.nki.no...
>>I downloaded SGI's STL and
>>* copied the header files to a separate directory (e:\include\SGISTL)
>>* added 'e:\include' to the search path for header files in the
>>  prosject settings.
>>* used #include <SGISTL\list> to include the header file for list.
>
>Using SGI STL instead of VC STL is a great idea. But you must use it
>_instead_, not _besides_. Try adding the e:\include\SGISTL directory to
>include paths in Tools/Options/Directory BEFORE standard path to VC\include,
>and do not use
>#include <SGISTL\list>
>but
>#include <list>
>This will work.

______________________________________________________

Bill Wernet
Consultant
JCC Consulting, Inc.
bill@jcc.com
614-587-0157
---
[ 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              ]



