Re: STL headers in VC.Net

From: Moonlit (news)
Date: 09/11/04


Date: Sat, 11 Sep 2004 20:27:37 +0200

Hi,

".h" is old all the STL stuff has been renamed to <vector> <list>, <sstream>
for stringstream stuff etc.
It is recommended to change it or just compile with an old compiler. This is
true for both VC and g++. Also you have to include "using namespace std" or
add "std::".

(Note that stringstream has changed a bit previously you had to call a
routine explicitely with zero to deallocate memory, now it is done
automatically).

In short, either compile with an old compiler or modify the program ( a
simple but job but it might still be a lot of work).

Regards, Ron AF Greve.

"Wei-Chao Hsu" <D8605007@mail.ntust.edu.tw> wrote in message
news:chvdgk$hqa$1@netnews.hinet.net...
>I have an old C++ program that used "complex.h". It appeared an error when
>it was recompiled by MS VC.NET 2003. The compiler could not find the file
>"complex.h", but it will be fine if <complex> and "using namespace std"
>were used. There is no problem if it is compiled by Borland CBuilderX. I
>don't want to modify the program because it will be a hard work. Any idea?
>
> Dennis
>



Relevant Pages