What am i doing wrong here?
APP.h
#pragma once
namespace App{
enum class AppStatus{
Exit,
Menu,
Run
};
void frameLoop();
AppStatus state;
}
App.cpp
#include "App.h"
#include "stdafx.h"
#include <Graphic\Graphic.h>
void App::frameLoop()
{
while (state != AppStatus::Exit) {
Graphic::renderingSequence();
}
}
Errors
Error C2653 'App': is not a class or namespace name App
Error C2065 'state': undeclared identifier App
Error C2653 'AppStatus': is not a class or namespace name App
Error C2065 'Exit': undeclared identifier App
Note that my namespace Graphic
(declared in \Graphic\Graphic.h) is being recognized by the compiler, even though i declared it just the same way.