www.digitalmars.com         C & C++   DMDScript  

c++ - Compilation problem

reply 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
parent "Walter Bright" <newshound digitalmars.com> writes:
Try reducing the file to the minimum that reproduces the error. 
Dec 19 2005