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++ - Compilation problem

↑ ↓ ← John Redmond <John_member pathlink.com> writes:
I am new to the DM environment, but I want to use it to port a library from
Linux and gcc. The DM IDDE really seems to be just what I need to set up a
project with 200+ C++ classes in several subdirectories.

Where I fall over, however, is when I try to compile one particular file,
'writer.cpp'.

'writer.h' has the includes:
#include <string>
#include <iostream>

Compilation with 8.42n fails with two errors:

Error: \dm\stlport\stlport\stl\_config.h(469): missing decl-specifier-seq for
declaration of 'e'. This corresponds to the source line:
namespace std { }

and a consequent(?) error:
Error: \dm\stlport\stlport\stl\_config.h(527): unidentified identifier 'std'.
This corresponds to the source line:
namespace stlport = _STLP_STD;

What is the problem, please?

JR
Dec 19 2005
↑ ↓ → "Walter Bright" <newshound digitalmars.com> writes:
Try reducing the file to the minimum that reproduces the error. 
Dec 19 2005