About Monkey 2 › Forums › Monkey 2 Programming Help › a bug, a bug, a bug?(solved)
This topic contains 9 replies, has 4 voices, and was last updated by
Jesse
2 years, 7 months ago.
-
AuthorPosts
-
September 12, 2016 at 12:32 am #3884
I am working on a game that I ran into some problems with the code. I thought it was problem with the Mx2cc translator but after Mark took a look at it, he seems not to have the same problem. so it could probably be with my computer only. So I am posting the code here and hope some can try it on a MACBOOK and let me know if it fails in their system as well. I have to know if its my Macbook I need to throw away.
September 12, 2016 at 4:23 am #3886> so it could probably be with my computer only.
It’s incredibly unlikely to be that.
What’s probably happened is that the version I committed wasn’t working 100%, while the version here on my machine is. Unfortunately, I wont be commiting the latest just yet as there are lots of changes that need testing first.
So don’t panic, we’ll get it sorted soon!
September 12, 2016 at 11:33 am #3902If you mean ufomanager.monkey2 and the line you are talking about is “Global this:= EntityState.ENTERING” then the error I get is:
Monkey1234567891011121314151617181920212223242526mx2cc version 1.0.5***** Building app 'C:/Users/Admin/Desktop/MissionPatrol/MissionPatrol.monkey2' *****Parsing...Semanting...Translating...Compiling...Build error: System command 'g++ -std=c++11 -m32 -I"C:/Workbench/Monkey2-v1.0.5/modules/freetype/freetype-2.6.3/include/" -I"C:/Workbench/Monkey2-v1.0.5/modules/openal/openal-soft/include/" -I"C:/Workbench/Monkey2-v1.0.5/modules/gles20/angle/include/" -I"C:/Workbench/Monkey2-v1.0.5/modules/sdl2/SDL/include/" -I"C:/Workbench/Monkey2-v1.0.5/modules/monkey/native" -I"C:/Workbench/Monkey2-v1.0.5/modules/" -I"C:/Users/Admin/Desktop/MissionPatrol/" -c -o "C:/Users/Admin/Desktop/MissionPatrol/MissionPatrol.buildv1.0.5/windows_debug/build/_1src_2MissionPatrol_0game_02levels.cpp.o" "C:/Users/Admin/Desktop/MissionPatrol/MissionPatrol.buildv1.0.5/windows_debug/src/MissionPatrol_game_2levels.cpp"' failed.g++ -std=c++11 -m32 -I"C:/Workbench/Monkey2-v1.0.5/modules/freetype/freetype-2.6.3/include/" -I"C:/Workbench/Monkey2-v1.0.5/modules/openal/openal-soft/include/" -I"C:/Workbench/Monkey2-v1.0.5/modules/gles20/angle/include/" -I"C:/Workbench/Monkey2-v1.0.5/modules/sdl2/SDL/include/" -I"C:/Workbench/Monkey2-v1.0.5/modules/monkey/native" -I"C:/Workbench/Monkey2-v1.0.5/modules/" -I"C:/Users/Admin/Desktop/MissionPatrol/" -c -o "C:/Users/Admin/Desktop/MissionPatrol/MissionPatrol.buildv1.0.5/windows_debug/build/_1src_2MissionPatrol_0game_02levels.cpp.o" "C:/Users/Admin/Desktop/MissionPatrol/MissionPatrol.buildv1.0.5/windows_debug/src/MissionPatrol_game_2levels.cpp"C:/Users/Admin/Desktop/MissionPatrol/MissionPatrol.buildv1.0.5/windows_debug/src/MissionPatrol_game_2levels.cpp: In member function 'virtual bbInt t_default_Stage1::m_Update()':C:/Users/Admin/Desktop/MissionPatrol/MissionPatrol.buildv1.0.5/windows_debug/src/MissionPatrol_game_2levels.cpp:95:67: error: 't_default_EntityState' was not declared in this scopeif((this->m_ufoManager->m_state==bbInt(t_default_EntityState(1)))){^***** Fatal mx2cc error *****Internal mx2cc build errorSeptember 12, 2016 at 2:34 pm #3904It’s bad idea to use ‘this’ as var name because it’s reserved word in c++ (into which monkey code translating).
September 12, 2016 at 2:47 pm #3905@Mark, Thanks.
@Cole Chapman
Thats it. Thanks, that eases my worries.@nerobot it’s just a dummy variable not use for it at all. weird that it can fix the error just by having it there.
September 12, 2016 at 7:54 pm #3908Just did a clean install from github-master.zip and it works fine as long as I do ‘./updatemx2cc.sh’.
However, the error message I get when it does crap out is slightly different, so perhaps it’s a compiler version problem. Here’s my g++ –version info:
Monkey123456Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1Apple LLVM version 7.3.0 (clang-703.0.31)Target: x86_64-apple-darwin15.6.0Thread model: posixInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/binPlease post yours.
The error I get is:
Monkey1/Users/marksibly/Desktop/MissionPatrol/MissionPatrol.buildv1.0.5/macos_debug/src/MissionPatrol_game_2levels.cpp:95:44: error: use of undeclared identifier 't_default_EntityState'September 12, 2016 at 7:58 pm #3909…also running OS X El Capitan 10.11.6
September 13, 2016 at 2:00 am #3912Yikes, I apologize Jesse. I did not run it on a macbook, I used Windows 7. I must have skimmed over that part in the post earlier… I’m getting married tomorrow and I’ve been all over the place today.
September 13, 2016 at 2:17 am #3913Ok, Thanks anyway.
this is what I got:
I am on OS X 10.11.6
Configured with: –prefix=/Applications/Xcode.app/Contents/Developer/usr –with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.6.0
Thread model: posixit’s the newest update I can get.
September 13, 2016 at 2:39 am #3914haha!
I had original missed where you mention to update the mx2cc.yea, that solved the problem.
Thanks.
-
AuthorPosts
You must be logged in to reply to this topic.