Original Post
I''m trying to convert a class to a namespace (no need to have it as a class) and I''ve ran into a wall. I''m attempting to stick with the normal definitions in the header and the actual function code in the source file. I split it up as I though was right, but it complains about the symbols being already defined in the other objects.
in header file:
in the source file:
What am I doing wrong?
#ifndef WINDOWMANAGER
#define WINDOWMANAGER
namespace WindowManager
{
bool fullscreen;
void dosomething();
}
#endif
#include "WindowManager.h"
namespace WindowManager
{
void dosomething()
{
fullscreen = false;
}
}
