vgrigor3
March 6th, 2003, 07:21 AM
In .cpp file I write:
#include "file.h"
#include <map>;
using namespace std;
class CPartHolder;
typedef map<int,CPartHolder*> type_MapPartHolder;
type_MapPartHolder mapPartHolder;
class CPartHolder
{
};
works fine
but if I move or add
declarations:
file.h :
#include <map>;
using namespace std;
into .h file
appeared STL error
"operator new not defined for...."
What is the reason of this and gow to resolve
such a problem?
Thanks
#include "file.h"
#include <map>;
using namespace std;
class CPartHolder;
typedef map<int,CPartHolder*> type_MapPartHolder;
type_MapPartHolder mapPartHolder;
class CPartHolder
{
};
works fine
but if I move or add
declarations:
file.h :
#include <map>;
using namespace std;
into .h file
appeared STL error
"operator new not defined for...."
What is the reason of this and gow to resolve
such a problem?
Thanks