home *** CD-ROM | disk | FTP | other *** search
- Path: newsbf02.news.aol.com!not-for-mail
- From: haris1@aol.com (HariS1)
- Newsgroups: comp.lang.c++
- Subject: HELP ! => Problem compiling STL classes in Visual C++ 4.1.
- Date: 10 Apr 1996 15:10:21 -0400
- Organization: America Online, Inc. (1-800-827-6364)
- Sender: root@newsbf02.news.aol.com
- Message-ID: <4kh12t$rs0@newsbf02.news.aol.com>
- Reply-To: haris1@aol.com (HariS1)
- NNTP-Posting-Host: newsbf02.mail.aol.com
-
- I have problem compiling the following STL program
-
- namespace std
- {
- #include <Vector.h>
- #include <Algo.h>
- }
-
-
- main ()
- {
- std::vector <int> v;
-
- v[0] = 1; v [1]=2; v[2]=3;
- }
-
- I am getting an error.
- "c:\msdev\stl\defalloc.h(124) : error C2660: 'new' :
- function does not take 2 parameters"
-
- I am using Visual C++ 4.1 under Window NT. I would appreciate if
- anybody could tell me how to resolve this problem. Apparently it looks
- like there is no overloaded 'new' operator defined in this STL files.
-
-
- Thanks
- Hari
-