S
Steffen Hampel
I got an rather large project which i recently startet to split up into
namespaces.
At a certain point the compiler (MSVC 6.0 sp5) began to give me C2871 errors
( 'name' : does not exist or is not a namespace ). I'am using an scheme
like this:
[header1.h]
namespace A {
// class declaration
}
[sourcefile1.cpp]
#include "header1.h"
#include<something>
namespace A{
// class definition
}
[header2.h]
namespace B {
// class declaration
}
[sourcefile2.cpp]
#include "header1.h"
#include "header2.h"
#include<something>
namespace B{
using namespace A; // error C2871
// class definition
}
Do you have any idea what i'm doing wrong? Or is this an compiler issue,
since i'm using 5-6 different namespaces distributet over 30 files and and
are cross referencing each other in the implementation sourcefiles.
I appreciate your help!
namespaces.
At a certain point the compiler (MSVC 6.0 sp5) began to give me C2871 errors
( 'name' : does not exist or is not a namespace ). I'am using an scheme
like this:
[header1.h]
namespace A {
// class declaration
}
[sourcefile1.cpp]
#include "header1.h"
#include<something>
namespace A{
// class definition
}
[header2.h]
namespace B {
// class declaration
}
[sourcefile2.cpp]
#include "header1.h"
#include "header2.h"
#include<something>
namespace B{
using namespace A; // error C2871
// class definition
}
Do you have any idea what i'm doing wrong? Or is this an compiler issue,
since i'm using 5-6 different namespaces distributet over 30 files and and
are cross referencing each other in the implementation sourcefiles.
I appreciate your help!