Suddenly I can't compile anymore...

Monkey Forums/Monkey Beginners/Suddenly I can't compile anymore...

chimaera(Posted 2014) [#1]
Hi,

For some reason I can't compile the code today that I could compile on Friday. I am getting the following error:
one Building Project "C:\Users\dath\Desktop\Lighting test\myLittleTest.buildv80c\glfw\vc2010\MonkeyGame.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\dath\Desktop\Lighting test\myLittleTest.buildv80c\glfw\vc2010\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"C:\Users\dath\Desktop\Lighting test\myLittleTest.buildv80c\glfw\vc2010\MonkeyGame.sln" (default target) (1) ->
"C:\Users\dath\Desktop\Lighting test\myLittleTest.buildv80c\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) ->
(ClCompile target) -> 
  ..\glfw\lib\win32\win32_joystick.c(237): error C2143: syntax error : missing ';' before 'type' [C:\Users\dath\Desktop\Lighting test\myLittleTest.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
  ..\glfw\lib\win32\win32_joystick.c(238): error C2065: 'j' : undeclared identifier [C:\Users\dath\Desktop\Lighting test\myLittleTest.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
  ..\glfw\lib\win32\win32_joystick.c(238): error C2065: 'j' : undeclared identifier [C:\Users\dath\Desktop\Lighting test\myLittleTest.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
  ..\glfw\lib\win32\win32_joystick.c(238): error C2065: 'j' : undeclared identifier [C:\Users\dath\Desktop\Lighting test\myLittleTest.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
  ..\glfw\lib\win32\win32_joystick.c(239): error C2065: 'j' : undeclared identifier [C:\Users\dath\Desktop\Lighting test\myLittleTest.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]

    0 Warning(s)
    5 Error(s)

Time Elapsed 00:00:03.05
TRANS FAILED: Error executing 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release /p:Platform=Win32 MonkeyGame.sln', return code=1


Could the problem be that I have installed a game or something that updated the MS framework?


chimaera(Posted 2014) [#2]
Oh, also. Since I had issues with the code I made a super simple test which renders the exact same issues as above.

Import mojo

Global myApp:MyApp
Global delta:Float=0.016

Function Main() 
End

Class MyApp Extends App
	
	Method OnCreate()
		SetUpdateRate 60
		Print "creating"
	End
	
	Method OnUpdate()
		Print "updating"
		If KeyDown(KEY_ESCAPE) Then 
			Error("")
		End
	End

	Method OnRender()
		Print "rendering"
	End

	Method OnSuspend()
	End
End



ImmutableOctet(SKNG)(Posted 2014) [#3]
You're not at fault here, Mark / the GLFW team (Somewhat) and Microsoft are.

Go to this thread for my solution. Your options are using MinGW/GCC, updating to the latest unstable build, or replacing/editing the "joystick.c" file (Click for the fixed file). The directory for it is: "/targets/glfw/template/glfw/lib/win32".

I hope this helps; other than this small bug, you seem to be all setup.


chimaera(Posted 2014) [#4]
Thanks Immutable! It worked for me.