www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Namespace std ?

↑ ↓ ← "É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
↑ ↓ → "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

 it out.
 Étienne Dupuis

Jan 21 2003