M
Michael
OK,
I've got a load of classes and functions that deal with Fonts so i want to
wrap them up into a namespace 'FontLib'
Now I have a resource manager that takes a pointer to a FontLibrary,
Now I have forward declared Font Library, but how do i tell the compiler
that the namespace FontLib Exists?
//Resource Mgr.h
class FontLibrary;
using namespace FontLib;
class ResourceMgr
{
public:
ResourceMgr(Kernel*);
~ResourceMgr(void);
FontLib::FontLibrary* pFontLibrary;
}
//Resource.cpp
#include "Fontlibrary.h"
//Implementation
//FontLibrary.h
namespace FontLib
{
class FontLibrary
{
public:
};
}
I get the errors:
c:\Documents and
Settings\Michael\Desktop\Ixium3D\Engine\MeshLibrary\..\ResourceManager\Resou
rceMgr.h(11) : error C2871: 'FontLib' : a namespace with this name does not
exist
c:\Documents and
Settings\Michael\Desktop\Ixium3D\Engine\MeshLibrary\..\ResourceManager\Resou
rceMgr.h(27) : error C2653: 'FontLib' : is not a class or namespace name
How do i tell the compiler that the namespace does actually exist??
Thanks
Mike
I've got a load of classes and functions that deal with Fonts so i want to
wrap them up into a namespace 'FontLib'
Now I have a resource manager that takes a pointer to a FontLibrary,
Now I have forward declared Font Library, but how do i tell the compiler
that the namespace FontLib Exists?
//Resource Mgr.h
class FontLibrary;
using namespace FontLib;
class ResourceMgr
{
public:
ResourceMgr(Kernel*);
~ResourceMgr(void);
FontLib::FontLibrary* pFontLibrary;
}
//Resource.cpp
#include "Fontlibrary.h"
//Implementation
//FontLibrary.h
namespace FontLib
{
class FontLibrary
{
public:
};
}
I get the errors:
c:\Documents and
Settings\Michael\Desktop\Ixium3D\Engine\MeshLibrary\..\ResourceManager\Resou
rceMgr.h(11) : error C2871: 'FontLib' : a namespace with this name does not
exist
c:\Documents and
Settings\Michael\Desktop\Ixium3D\Engine\MeshLibrary\..\ResourceManager\Resou
rceMgr.h(27) : error C2653: 'FontLib' : is not a class or namespace name
How do i tell the compiler that the namespace does actually exist??
Thanks
Mike