has anything changed??

Monkey Targets Forums/Desktop/has anything changed??

Paul - Taiphoz(Posted 2014) [#1]
Just wondering if something has changed with this target, iv not tried compiling to it for like AGE's and probably a good few updates, so was trying to compile today and getting tons of errors.

Microsoft (R) Build Engine version 4.0.30319.18408
[Microsoft .NET Framework, version 4.0.30319.18444]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 28/08/2014 05:18:20 PM.
Project "D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|Win32".
Project "D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.sln" (1) is building "D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\build\Debug\".
InitializeBuildStatus:
  Creating "D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\build\Debug\MonkeyGame.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /I"../bdwgc/libatomic_ops-1.2/src" /I../bdwgc/include /I../stb /I../openal/include /I../glfw/include /I../glfw/lib /I../glfw/lib/win32 /Zi /nologo /W0 /WX- /Od /Oy- /D WIN32 /D _DEBUG /D _WINDOWS /D _MBCS /Gm /EHa /MTd /GS /Gy- /fp:precise /Zc:wchar_t /Zc:forScope /Fo"D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\build\Debug\\" /Fd"D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\build\Debug\vc100.pdb" /Gd /TC /analyze- /errorReport:queue ..\glfw\lib\enable.c ..\glfw\lib\fullscreen.c ..\glfw\lib\glext.c ..\glfw\lib\image.c ..\glfw\lib\init.c ..\glfw\lib\input.c ..\glfw\lib\joystick.c ..\glfw\lib\stream.c ..\glfw\lib\tga.c ..\glfw\lib\thread.c ..\glfw\lib\time.c ..\glfw\lib\win32\win32_dllmain.c ..\glfw\lib\win32\win32_enable.c ..\glfw\lib\win32\win32_fullscreen.c ..\glfw\lib\win32\win32_glext.c ..\glfw\lib\win32\win32_init.c ..\glfw\lib\win32\win32_joystick.c ..\glfw\lib\win32\win32_thread.c ..\glfw\lib\win32\win32_time.c ..\glfw\lib\win32\win32_window.c ..\glfw\lib\window.c ..\stb\stb_image.c ..\stb\stb_vorbis.c /bigobj 
  stb_vorbis.c
  stb_image.c
  window.c
  win32_window.c
  win32_time.c
  win32_thread.c
  win32_joystick.c
..\glfw\lib\win32\win32_joystick.c(237): error C2143: syntax error : missing ';' before 'type' [D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
..\glfw\lib\win32\win32_joystick.c(238): error C2065: 'j' : undeclared identifier [D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
..\glfw\lib\win32\win32_joystick.c(238): error C2065: 'j' : undeclared identifier [D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
..\glfw\lib\win32\win32_joystick.c(238): error C2065: 'j' : undeclared identifier [D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
..\glfw\lib\win32\win32_joystick.c(239): error C2065: 'j' : undeclared identifier [D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
  win32_init.c
  win32_glext.c
  win32_fullscreen.c
  win32_enable.c
  win32_dllmain.c
  time.c
  thread.c
  tga.c
  stream.c
  joystick.c
  input.c
  init.c
  image.c
  Generating Code...
  Compiling...
  glext.c
  fullscreen.c
  enable.c
  Generating Code...
Done Building Project "D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj" (default targets) -- FAILED.
Done Building Project "D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.sln" (default target) (1) ->
"D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) ->
(ClCompile target) -> 
  ..\glfw\lib\win32\win32_joystick.c(237): error C2143: syntax error : missing ';' before 'type' [D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
  ..\glfw\lib\win32\win32_joystick.c(238): error C2065: 'j' : undeclared identifier [D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
  ..\glfw\lib\win32\win32_joystick.c(238): error C2065: 'j' : undeclared identifier [D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
  ..\glfw\lib\win32\win32_joystick.c(238): error C2065: 'j' : undeclared identifier [D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
  ..\glfw\lib\win32\win32_joystick.c(239): error C2065: 'j' : undeclared identifier [D:\Code\Monkey\bananas\ferdi\snake\snake.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]

    0 Warning(s)
    5 Error(s)

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


Any ideas?


my config is pointing to msbuild, and MingGW is also set as well.


ziggy(Posted 2014) [#2]
If it's latest experimental version, you would need to wait for an update as the joystick.c has a small syntax error. Going one version back should do it.


ImmutableOctet(SKNG)(Posted 2014) [#3]
This is an issue when compiling with non-C99 compatible compilers (With the newest update, but that's not purposeful). Visual Studio 2010 does not support C99 (For some reason), so if you want to use v80c, you'll need to use GCC/MinGW.

That being said, you could just do what I did, and move the 'j' variable to the top of the function (Or at least the top of the 'if' statement's scope), and call it a day. Mark is aware of this issue, so everything should be good in the next release. If you're really lazy, here's the fixed file (joystick.c). Just move it to "/targets/glfw/template/glfw/lib/win32", and that should fix the problem.

This whole thing is really just a problem on Microsoft's end, I mean really, why in the world doesn't VS2010 support C99? That's just sad, if you ask me.

EDIT: Oh right, I forgot; whatever you do, delete the build folder before trying to build your project again. It took me half an hour to realize why Visual Studio was going insane.


AaronK(Posted 2014) [#4]
Just got bitten by this in the latest Monkey-X too.


ImmutableOctet(SKNG)(Posted 2014) [#5]
@AaronK: When you say latest... You don't mean V81(A), do you? Because, Mark seems to have fixed that.

My fix should work if it's this same issue, though.