Errors compiling with msvc2010

Monkey Targets Forums/Desktop/Errors compiling with msvc2010

Hezkore(Posted 2014) [#1]
I've installed msvc2010 (multiple times)
I have my MSBUILD path set to MSBUILD_PATH="C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"
And I added #GLFW_USE_MINGW = False
But whenever I try to compile anything, with TED or JungleIDE, I just get these errors:
Build started 2014-10-08 08:34:24.
Project "D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Release|Win32".
Project "D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.sln" (1) is building "D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\build\Release\".
InitializeBuildStatus:
  Creating "D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\build\Release\MonkeyGame.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\WINDOWS\SYSTEM32\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- /O2 /Oi /Oy- /GL /D WIN32 /D NDEBUG /D _WINDOWS /D _MBCS /Gm- /EHa /MT /GS /Gy- /fp:precise /Zc:wchar_t /Zc:forScope /Fo"D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\build\Release\\" /Fd"D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\build\Release\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 
  Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
  Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
  
  cl ��/
     
     n
  
CL : Command line warning D4024: unrecognized source file type '��/', object file assumed [D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
CL : Command line warning D4024: unrecognized source file type 'n', object file assumed [D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
  Microsoft (R) Incremental Linker Version 10.00.30319.01
  Copyright (C) Microsoft Corporation.  All rights reserved.
  
  /out:.exe 
  ��/ 
  n 
LINK : fatal error LNK1181: cannot open input file '��/.obj' [D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
Done Building Project "D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.vcxproj" (default targets) -- FAILED.
Done Building Project "D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.sln" (default target) (1) ->
"D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) ->
(ClCompile target) -> 
  CL : Command line warning D4024: unrecognized source file type '��/', object file assumed [D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]
  CL : Command line warning D4024: unrecognized source file type 'n', object file assumed [D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]


"D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.sln" (default target) (1) ->
"D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) ->
(ClCompile target) -> 
  LINK : fatal error LNK1181: cannot open input file '��/.obj' [D:\Programs\MonkeyX\bananas\difference\clock\clock.buildv80c\glfw\vc2010\MonkeyGame.vcxproj]

    2 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.20
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
Done.
The problem is obviously the "��" jibberish, but I don't know where it would be getting that from.
Monkey X is installed to "D:\Programs\MonkeyX" and I'm just trying to compile examples, so it's not like I have Monkey or the code in some weird folder name.


Hezkore(Posted 2014) [#2]
Phew I managed to get it working...
Turns out my "C:\WINDOWS\SYSTEM32\CL.exe" (which actually is "C:\WINDOWS\SYSWOW64\CL.exe") was old! (Copyright (C) Microsoft Corp 1984-1998)
So I had a look for the newer one, turns out it's located in "C:\Microsoft Visual Studio 10.0\VC\bin" along with the needed "c2.dll" and "c1.dll" files.
I copied those into my "SYSWOW64" folder along with the fixed "joystick.c" for Monkey, which is found at the bottom of this thread - http://www.monkey-x.com/Community/posts.php?topic=8933
And now it works!

I have to say though...
As much as I love Monkey and all great Blitz products, it's things like this that really makes Monkey a pain in the A to use.
I've been using Monkey for some time now, and I'm still just trying to get all targets to work and behave as they should.
And the documents are no help as they often just flat out lie about what some targets support and don't support.