Can't build to GLFW
Monkey Targets Forums/Desktop/Can't build to GLFW
| ||
When I try to build for GLFW I get this error:Translating hardestGameEver /Users/Work/Downloads/MonkeyPro54/bin/trans_macos -target=glfw -run "/Users/Work/Desktop/Gamedev - Will/hardestGameEver.monkey" TRANS monkey compiler V1.30 Parsing... Semanting... Translating... Building... === BUILD NATIVE TARGET MonkeyGame OF PROJECT MonkeyGame WITH CONFIGURATION Debug === Check dependencies CpResource data build/Debug/MonkeyGame.app/Contents/Resources/data cd "/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode" builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks "/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/data" "/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/build/Debug/MonkeyGame.app/Contents/Resources" CompileC build/MonkeyGame.build/Debug/MonkeyGame.build/Objects-normal/x86_64/main.o ../main.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler cd "/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode" setenv LANG en_US.US-ASCII /Developer/usr/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-print-source-range-info -fdiagnostics-show-category=id -fdiagnostics-parseable-fixits -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -Wc++0x-extensions -isysroot /Developer/SDKs/MacOSX10.6.sdk -fasm-blocks -mmacosx-version-min=10.6 -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -iquote "/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/build/MonkeyGame.build/Debug/MonkeyGame.build/MonkeyGame-generated-files.hmap" "-I/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/build/MonkeyGame.build/Debug/MonkeyGame.build/MonkeyGame-own-target-headers.hmap" "-I/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/build/MonkeyGame.build/Debug/MonkeyGame.build/MonkeyGame-all-target-headers.hmap" -iquote "/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/build/MonkeyGame.build/Debug/MonkeyGame.build/MonkeyGame-project-headers.hmap" "-I/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/build/Debug/include" -I../glfw/include -I../glfw/lib -I../openal/include -I../glfw/lib/cocoa -I../stb "-I/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/build/MonkeyGame.build/Debug/MonkeyGame.build/DerivedSources/x86_64" "-I/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/build/MonkeyGame.build/Debug/MonkeyGame.build/DerivedSources" "-F/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/build/Debug" -include /var/folders/sg/sgOyvGepG3akmclyCcPK+k+++TM/-Caches-/com.apple.Xcode.502/SharedPrecompiledHeaders/MonkeyGame_Prefix-dttrdgeuhudlteegghclgghldyct/MonkeyGame_Prefix.pch -MMD -MT dependencies -MF "/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/build/MonkeyGame.build/Debug/MonkeyGame.build/Objects-normal/x86_64/main.d" -c "/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/../main.cpp" -o "/Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/build/MonkeyGame.build/Debug/MonkeyGame.build/Objects-normal/x86_64/main.o" /Users/Work/Desktop/Gamedev - Will/hardestGameEver.build/glfw/xcode/../main.cpp:3259:18: error: use of undeclared identifier 'function' [3] bb_random_Seed=(function(){return (new Date()).getTime();})(); ^ 1 error generated. TRANS FAILED: TRANS Failed to execute 'xcodebuild -configuration Debug', return code=16640 ** BUILD FAILED ** The following build commands failed: CompileC build/MonkeyGame.build/Debug/MonkeyGame.build/Objects-normal/x86_64/main.o ../main.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) I am on Snow Leopard. Thank you for any help! |
| ||
what version of monkey? does it work under any other platform? can you post the source code? Not much we can do without the source code. |