Won't Compile

Monkey Targets Forums/Desktop/Won't Compile

blabz(Posted 2013) [#1]
I keep getting identifier not found, I have OpenGL, OpenCL and VC++ 2010 express.

C:\MonkeyPro68\bin\transcc_winnt.exe -run -config=debug -target=Glfw_Game   "C:\Users\blabbe\Desktop\test\newfile.monkey"
TRANS monkey compiler V1.46
Parsing...
Semanting...
Translating...
Building...
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.269]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 3/7/2013 8:40:28 AM.
Project "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|Win32".
Project "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.sln" (1) is building "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
  Touching "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\build\Debug\MonkeyGame.unsuccessfulbuild".
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"C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\build\Debug\\" /Fd"C:\Users\blabbe\Desktop\test\newfile.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\stb_vorbis.c /bigobj 
  stb_vorbis.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
  Generating Code...
  Compiling...
  glext.c
  fullscreen.c
  enable.c
  Generating Code...
  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"C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\build\Debug\\" /Fd"C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\build\Debug\vc100.pdb" /Gd /TP /analyze- /errorReport:queue ..\main.cpp /bigobj 
  main.cpp
..\main.cpp(1616): error C3861: 'time': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(1621): error C3861: 'localtime_s': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5446): error C2084: function 'const char *readTag(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          ..\main.cpp(1889) : see previous definition of 'readTag'
..\main.cpp(5453): error C2084: function 'int readInt(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          ..\main.cpp(1896) : see previous definition of 'readInt'
..\main.cpp(5459): error C2084: function 'int readShort(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          ..\main.cpp(1902) : see previous definition of 'readShort'
..\main.cpp(5465): error C2084: function 'void skipBytes(int,FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          ..\main.cpp(1908) : see previous definition of 'skipBytes'
..\main.cpp(5474): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5475): error C2296: '-' : illegal, left operand has type 'int (__cdecl *)(FILE *)' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5475): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5476): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5477): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5478): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5478): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5479): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5479): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5481): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5481): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5482): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5482): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5483): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5483): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5484): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5484): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5485): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5485): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5487): error C3861: 'skipBytes': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5489): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5489): error C2440: 'initializing' : cannot convert from 'const char *(__cdecl *)(FILE *)' to 'const char *' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5491): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5491): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5493): error C3861: 'skipBytes': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
Done Building Project "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.sln" (default target) (1) ->
"C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) ->
(ClCompile target) -> 
  ..\main.cpp(1616): error C3861: 'time': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(1621): error C3861: 'localtime_s': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5446): error C2084: function 'const char *readTag(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5453): error C2084: function 'int readInt(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5459): error C2084: function 'int readShort(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5465): error C2084: function 'void skipBytes(int,FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5474): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5475): error C2296: '-' : illegal, left operand has type 'int (__cdecl *)(FILE *)' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5475): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5476): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5477): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5478): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5478): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5479): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5479): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5481): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5481): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5482): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5482): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5483): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5483): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5484): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5484): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5485): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5485): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5487): error C3861: 'skipBytes': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5489): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5489): error C2440: 'initializing' : cannot convert from 'const char *(__cdecl *)(FILE *)' to 'const char *' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5491): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5491): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5493): error C3861: 'skipBytes': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]

    0 Warning(s)
    31 Error(s)

Time Elapsed 00:00:13.24
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
Abnormal program termination. Exit code: -1
C:\MonkeyPro68\bin\transcc_winnt.exe -run -config=debug -target=Glfw_Game   "C:\Users\blabbe\Desktop\test\newfile.monkey"
TRANS monkey compiler V1.46
Parsing...
Semanting...
Translating...
Building...
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.269]
Copyright (C) Microsoft Corporation 2007. All rights reserved.

Build started 3/7/2013 8:53:17 AM.
Project "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|Win32".
Project "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.sln" (1) is building "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
  Touching "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\build\Debug\MonkeyGame.unsuccessfulbuild".
ClCompile:
  All outputs are up-to-date.
  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"C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\build\Debug\\" /Fd"C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\build\Debug\vc100.pdb" /Gd /TP /analyze- /errorReport:queue ..\main.cpp /bigobj 
  main.cpp
..\main.cpp(1616): error C3861: 'time': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(1621): error C3861: 'localtime_s': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5446): error C2084: function 'const char *readTag(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          ..\main.cpp(1889) : see previous definition of 'readTag'
..\main.cpp(5453): error C2084: function 'int readInt(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          ..\main.cpp(1896) : see previous definition of 'readInt'
..\main.cpp(5459): error C2084: function 'int readShort(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          ..\main.cpp(1902) : see previous definition of 'readShort'
..\main.cpp(5465): error C2084: function 'void skipBytes(int,FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          ..\main.cpp(1908) : see previous definition of 'skipBytes'
..\main.cpp(5474): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5475): error C2296: '-' : illegal, left operand has type 'int (__cdecl *)(FILE *)' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5475): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5476): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5477): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5478): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5478): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5479): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5479): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5481): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5481): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5482): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5482): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5483): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5483): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5484): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5484): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5485): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5485): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5487): error C3861: 'skipBytes': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5489): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5489): error C2440: 'initializing' : cannot convert from 'const char *(__cdecl *)(FILE *)' to 'const char *' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5491): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
..\main.cpp(5491): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
          There is no context in which this conversion is possible
..\main.cpp(5493): error C3861: 'skipBytes': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
Done Building Project "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.sln" (default targets) -- FAILED.

Build FAILED.

"C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.sln" (default target) (1) ->
"C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj" (default target) (2) ->
(ClCompile target) -> 
  ..\main.cpp(1616): error C3861: 'time': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(1621): error C3861: 'localtime_s': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5446): error C2084: function 'const char *readTag(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5453): error C2084: function 'int readInt(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5459): error C2084: function 'int readShort(FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5465): error C2084: function 'void skipBytes(int,FILE *)' already has a body [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5474): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5475): error C2296: '-' : illegal, left operand has type 'int (__cdecl *)(FILE *)' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5475): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5476): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5477): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5478): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5478): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5479): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5479): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5481): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5481): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5482): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5482): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5483): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5483): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5484): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5484): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5485): error C3861: 'readShort': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5485): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5487): error C3861: 'skipBytes': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5489): error C3861: 'readTag': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5489): error C2440: 'initializing' : cannot convert from 'const char *(__cdecl *)(FILE *)' to 'const char *' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5491): error C3861: 'readInt': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5491): error C2440: 'initializing' : cannot convert from 'int (__cdecl *)(FILE *)' to 'int' [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]
  ..\main.cpp(5493): error C3861: 'skipBytes': identifier not found [C:\Users\blabbe\Desktop\test\newfile.build\glfw\vc2010\MonkeyGame.vcxproj]

    0 Warning(s)
    31 Error(s)

Time Elapsed 00:00:08.85
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
Abnormal program termination. Exit code: -1



blabz(Posted 2013) [#2]
I moved my files to the Bananas folder in Monkey and it seems to work now.

Is this suppose to be necessary?


dawlane(Posted 2013) [#3]
You should be able to build from any location that you have read/write permission.
There could be a number of things wrong, but usually you get errors if you have built your code with one version of monkey and then try to rebuild it with a different version without first deleting the old .build folder.

It would be a good idea to post some test code so others can test and see what may be the problem.