Odd error ?
Error
1>------ Build started: Project: Test, Configuration: Debug Win32 ------
1>Compiling...
1>Main.cpp
1>d:\test game\test\test\main.cpp(2) : fatal error C1083: Cannot open include file: 'Main.h': No such file or directory
1>Build log was saved at "file://d:\Test game\Test\Test\Debug\BuildLog.htm"
1>Test - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Main.cpp
#include <DarkGDK.h>
#include <Main.h>
int g_iBullet;
enum eMode {eGameTitle,
eGameMenu,
eGameLoad,
eGamePlay,
eGameWin,
eGameLose};
eMode g_eGameMode = eGameTitle;
void DarkGDK ( void )
{
while ( LoopGDK() )
{
game();
dbSync();
}
}
void game ( void )
{
switch ( g_eGameMode )
{
case eGameMenu: gameMenu(); break;
case eGameLoad: gameLoad(); break;
case eGamePlay: gamePlay(); break;
case eGameWin: gameWin() ; break;
case eGameLose: gameLose(); break;
}
}
void gameTitle ( void )
{
dbSetDisplayMode ( 1024 , 768 , 32 );
dbSyncOn();
dbSyncRate(60);
dbSetWindowTitle ( "Test" );
dbSetTextFont ( "courier" );
dbSetTextSize ( 50 );
g_eGameMode = eGameMenu;
}
Main.h
#pragma once
void game ( void );
void gameMenu ( void );
void gameLoad ( void );
void gamePlay ( void );
void gameWin ( void );
void gameLose ( void );
I can't figure why it doesn't find the header file.