www.digitalmars.com         C & C++   DMDScript  

c++ - Namespace std ?

reply "Étienne ou Mélanie" <lestourtereaux free.fr> writes:
Greetings,

Following code does not compile :

#include <list>
std::list<int> *List;

Error message (with -A, ansi mode) is
'list' is not a member of namespace 'std'

If there is a compilation flag or a -D flag I could use, thanks for pointing
it out.
Étienne Dupuis
Jan 21 2003
parent "Walter" <walter digitalmars.com> writes:
Try compiling with the switch:
    -I\dm\stlport\stlport


"Étienne ou Mélanie" <lestourtereaux free.fr> wrote in message
news:b0ja1a$2gfj$1 digitaldaemon.com...
 Greetings,

 Following code does not compile :

 #include <list>
 std::list<int> *List;

 Error message (with -A, ansi mode) is
 'list' is not a member of namespace 'std'

 If there is a compilation flag or a -D flag I could use, thanks for
pointing
 it out.
 Étienne Dupuis
Jan 21 2003