I broke summit. :(

Monkey Targets Forums/Desktop/I broke summit. :(

Paul - Taiphoz(Posted 2012) [#1]
Things were fine for a while, then recently I took a few weeks out, I came back to it today and hit compile to get 22 + errors, thinking I broke something I un-installed VS and re-Installed it.

Now I only get 1 error. not sure what I did or what changed.


Translating iTerm
E:/Code/MonkeyPro/bin/trans_winnt -target=glfw -run E:/Source/Monkey/Invaders/iTerm.monkey

TRANS monkey compiler V1.32
Parsing...
Semanting...
Translating...
Building...
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.261]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 26/04/2012 07:58:38 PM.
Project "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|win32".
Project "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.sln" (1) is building "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
  Touching "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\build\Debug\MonkeyGame.unsuccessfulbuild".
ClCompile:
  All outputs are up-to-date.
  C:\Program Files\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 /EHsc /MTd /GS /Gy- /fp:precise /Zc:wchar_t /Zc:forScope /Fo"E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\build\Debug\\" /Fd"E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\build\Debug\vc100.pdb" /Gd /TP /analyze- /errorReport:queue ..\main.cpp
  main.cpp
C:\Program Files\Microsoft Visual Studio 10.0\VC\include\crtdll/stddef.h(141): error C2371: 'wint_t' : redefinition; different basic types [E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj]
          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
Done Building Project "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj" (default targets) -- FAILED.
Done Building Project "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.sln" (default target) (1) ->
"E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) ->
(ClCompile target) -> 
  C:\Program Files\Microsoft Visual Studio 10.0\VC\include\crtdll/stddef.h(141): error C2371: 'wint_t' : redefinition; different basic types [E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:28.79
TRANS FAILED: TRANS Failed to execute 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug;Platform="win32" MonkeyGame.sln', return code=1

Process Complete



therevills(Posted 2012) [#2]
Have you tried deleting your build folder?


slenkar(Posted 2012) [#3]
thats weird,

did you completely uninstall visual C? deleted all folders?

if that fails open up main.cpp in a good text editor and search for win_t and see what you find


Paul - Taiphoz(Posted 2012) [#4]
I not only took out VC but a number of other things as well associated with it, so yeah it was all fully gone.

Im now in a situation where there are two updates for VC and neither will install, windows updater just gives me some 602* error and fails.


Paul - Taiphoz(Posted 2012) [#5]
Ah screw it , not gona waste time on it, getting a new PC in two weeks, so will be looking at a complete fresh install or everything.

Will just leave it till then, dont need to compile to GLFW for a while yet anyway :(


Paul - Taiphoz(Posted 2012) [#6]
OK. this is still annoying me.

SO much so that I have begun to wonder if there is actually something other than Visual C++ Express required to compile monkey apps for GLFW and or XNA, because I have now installed Express 3 times, and its still not going to compile my code.

Even though said code compiled fine in the past, with no changes made to the source in the interim.

Is it possible there is some c++ files required and simply assumed to exist in a normal windows install ? something I perhaps might have accidentally removed or has gotten corrupt, or is there simply something wrong with my install of monkey.


Paul - Taiphoz(Posted 2012) [#7]
I should say the error remains the same..


Build FAILED.

"E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.sln" (default target) (1) ->
"E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) ->
(ClCompile target) -> 
  C:\Program Files\Microsoft Visual Studio 10.0\VC\include\crtdll/stddef.h(141): error C2371: 'wint_t' : redefinition; different basic types [E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:13.51
TRANS FAILED: TRANS Failed to execute 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug;Platform="win32" MonkeyGame.sln', return code=1

Process Complete




John McCubbin(Posted 2012) [#8]
It's been said before but try deleting the build folder, the one thats built within your source folder.


Paul - Taiphoz(Posted 2012) [#9]
Yeah should have said, iv done it a dozen times, no effect.

just to be sure I deleted all build folders, and still same error.


Translating iTerm
E:/Code/MonkeyPro/bin/trans_winnt -target=glfw -run E:/Source/Monkey/Invaders/iTerm.monkey

TRANS monkey compiler V1.32
Parsing...
Semanting...
Translating...
Building...
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.261]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 29/04/2012 05:16:45 PM.
Project "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|win32".
Project "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.sln" (1) is building "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\build\Debug\".
InitializeBuildStatus:
  Creating "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\build\Debug\MonkeyGame.unsuccessfulbuild" because "AlwaysCreate" was specified.
ClCompile:
  C:\Program Files\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 /EHsc /MTd /GS /Gy- /fp:precise /Zc:wchar_t /Zc:forScope /Fo"E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\build\Debug\\" /Fd"E:\Source\Monkey\Invaders\iTerm.build\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_image.c
  window.c
  win32_window.c
  win32_time.c
  win32_thread.c
  win32_joystick.c
  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
  glext.c
  Generating Code...
  Compiling...
  fullscreen.c
  enable.c
  Generating Code...
  C:\Program Files\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 /EHsc /MTd /GS /Gy- /fp:precise /Zc:wchar_t /Zc:forScope /Fo"E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\build\Debug\\" /Fd"E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\build\Debug\vc100.pdb" /Gd /TP /analyze- /errorReport:queue ..\main.cpp
  main.cpp
C:\Program Files\Microsoft Visual Studio 10.0\VC\include\crtdll/stddef.h(141): error C2371: 'wint_t' : redefinition; different basic types [E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj]
          C:\Program Files\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(447) : see declaration of 'wint_t'
Done Building Project "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj" (default targets) -- FAILED.
Done Building Project "E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.sln" (default target) (1) ->
"E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) ->
(ClCompile target) -> 
  C:\Program Files\Microsoft Visual Studio 10.0\VC\include\crtdll/stddef.h(141): error C2371: 'wint_t' : redefinition; different basic types [E:\Source\Monkey\Invaders\iTerm.build\glfw\vc2010\MonkeyGame.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:17.43
TRANS FAILED: TRANS Failed to execute 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug;Platform="win32" MonkeyGame.sln', return code=1

Process Complete




dave.h(Posted 2012) [#10]
not exactly a solution but when i typed your error in on google a lot of help came up on it.some here

http://www.gamedev.net/topic/450254-libpng-and-msvc8/

i just typed error C2371: 'wint_t in google and quite a lot came up it might help narrow it down for you a bit


Paul - Taiphoz(Posted 2012) [#11]
that's 2007 and talking about vc 2005 not 2010 so its a little or a lot out of date.