I am making a game from the Digipen ProjectFun FunEditor program and compiling it though Visual C++ 2005. It compiles but not an .exe, and says it cannot find the file when I try running it.
This is what it says in FunEditor:
Failed to execute: <file.exe>
The following error was reported: The system cannot find the file specified.
On the Visual C++ compiler:
| | | Build started: Project: Brick Game, Configuration: Debug|Win32
|
| | | Creating temporary file "c:\Program Files\DigiPen\FunEditor1.5\Library\Data\Debug\RSP00000418524044.rsp" with contents
[
/Od /I "C:\Program Files\DigiPen\FunEditor1.5\Library\FunInclude" /I "C:\Program Files\DigiPen\FunEditor1.5\Library" /D "WIN32" /D "ERROR_MESSAGES" /D "_WINDOWS" /D "FUNCORE" /D "_MBCS" /FD /EHsc /RTC1 /MTd /Fo".\Debug/" /Fd".\Debug/" /W3 /c /ZI ".\StateMachineFun.cpp"
".\MyGame.cpp"
".\LoadActorsFun.cpp"
".\GameNodeFun.cpp"
".\GameFunctions.cpp"
]
Creating command line "cl.exe @"c:\Program Files\DigiPen\FunEditor1.5\Library\Data\Debug\RSP00000418524044.rsp" /nologo /errorReport:prompt"
|
| | | Compiling...
StateMachineFun.cpp
c:\program files\digipen\funeditor1.5\library\funinclude\stdafx.h(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
MyGame.cpp
c:\program files\digipen\funeditor1.5\library\funinclude\stdafx.h(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
LoadActorsFun.cpp
c:\program files\digipen\funeditor1.5\library\funinclude\stdafx.h(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
GameNodeFun.cpp
c:\program files\digipen\funeditor1.5\library\funinclude\stdafx.h(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
GameFunctions.cpp
c:\program files\digipen\funeditor1.5\library\funinclude\stdafx.h(10) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Generating Code...
|
| | | Build log was saved at "file://c:\Program Files\DigiPen\FunEditor1.5\Library\Data\Debug\BuildLog.htm"
Brick Game - 5 error(s), 0 warning(s)
|
They said it may be having trouble linking or compile in the wrong path. Please explain in words I can understand.
Almost got it!
DominiqueMassiot2
The test application works but the game still will not compile right.
This might narrow things down.
Compiling... StateMachineFun.cpp c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(95) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(103) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(10) : warning C4996: 'strcpy' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy' Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(11) : warning C4996: 'strcpy' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy' Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(12) : warning C4996: 'strcpy' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy' Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(13) : warning C4996: 'strcpy' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy' Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(14) : warning C4996: 'strcpy' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy' Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(19) : warning C4244: 'argument' : conversion from 'unsigned int' to 'float', possible loss of data c:\program files\digipen\funeditor1.5\library\data\statemachinefun.cpp(25) : warning C4390: ';' : empty controlled statement found; is this the intent MyGame.cpp c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(95) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(103) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data LoadActorsFun.cpp c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(95) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(103) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data GameNodeFun.cpp c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(95) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(103) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data GameFunctions.cpp c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(95) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data c:\program files\digipen\funeditor1.5\library\funinclude\globals.h(103) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data c:\program files\digipen\funeditor1.5\library\data\gamefunctions.cpp(9) : warning C4996: 'strcpy' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy' Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\program files\digipen\funeditor1.5\library\data\gamefunctions.cpp(10) : warning C4996: 'strcpy' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy' Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\program files\digipen\funeditor1.5\library\data\gamefunctions.cpp(11) : warning C4996: 'strcpy' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy' Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\program files\digipen\funeditor1.5\library\data\gamefunctions.cpp(16) : warning C4244: 'argument' : conversion from 'unsigned int' to 'float', possible loss of data c:\program files\digipen\funeditor1.5\library\data\gamefunctions.cpp(16) : warning C4244: 'argument' : conversion from 'unsigned int' to 'float', possible loss of data Generating Code... Compiling resources... .\fun.rc(4) : error RC2135 : file not found: C:\Program Files\DigiPen\FunEditor1.5\Library rrow.cur .\fun.rc(5) : error RC2135 : file not found: C:\Program Files\DigiPen\FunEditor1.5\Library extsCursor.bmp .\fun.rc(8) : error RC2104 : undefined keyword or key name: DS_MODALFRAMEVashi
I followed the steps on the site and at the last step. When it started running It still says it cannot find the file for the application.
I thought I followed everything It said.
MojoMonkey
Are you using the Express Edition of Visual C++ If you are then you need to also install the Platform SDK - this link explains how:
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/
ddennard
Make sure you followe step 3:
Step 3: Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box.
Add the paths to the appropriate subsection:
Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib
Thanks, Ayman Shoukry VC++ Team