About Monkey 2 › Forums › Monkey 2 Programming Help › Compiling problem report
This topic contains 4 replies, has 2 voices, and was last updated by
Pakz 1 year, 3 months ago.
-
AuthorPosts
-
December 30, 2017 at 11:28 am #12525
I had someone message me that one of my examples does not compile. I tested myself and I can compile it without errors. This with version 1.1.08
This was the error that someone reported
Build error: System command ‘g++ -c -std=c++11 -m32 -D_WIN32_WINNT=0x0603 -I”d:/Monkey2-v1.1.08/modules/”….. failed
The code that works with me, and maybe not with everyone is :
https://github.com/Pakz001/Monkey2examples/blob/master/CivClone%200.75.monkey2
Can anyone test if it compiles on their setup?
December 30, 2017 at 5:20 pm #12529The person registered here but has not gotten the email yet. He posted a more complete error report on the youtube thread. Below :
Monkey12345678910111213141516171819202122232425262728293031323334353637383940414243Mx2cc version 1.1.08*** Building app 'D:/monkey2p/CivClone 0.75.monkey2' ***Parsing...Semanting...Translating...Compiling...Build error: System command 'g++ -c -std=c++11 -m32 -D_WIN32_WINNT=0x0603 -I"d:/Monkey2-v1.1.08/modules/" -I"d:/Monkey2-v1.1.08/modules/monkey/native" -I"D:/monkey2p/" -I"d:/Monkey2-v1.1.08/modules/freetype/freetype-2.6.3/include/" -I"d:/Monkey2-v1.1.08/modules/openal/openal-soft/include/" -I"d:/Monkey2-v1.1.08/modules/gles20/angle/include/" -I"d:/Monkey2-v1.1.08/modules/sdl2/SDL/include/" -o "D:/monkey2p/CivClone 0.75.buildv1.1.08/windows_debug/build/CivClone_040.75_0CivClone_040.75.cpp.o" "D:/monkey2p/CivClone 0.75.buildv1.1.08/windows_debug/src/CivClone_40.75_CivClone_40.75.cpp"' failed.g++ -c -std=c++11 -m32 -D_WIN32_WINNT=0x0603 -I"d:/Monkey2-v1.1.08/modules/" -I"d:/Monkey2-v1.1.08/modules/monkey/native" -I"D:/monkey2p/" -I"d:/Monkey2-v1.1.08/modules/freetype/freetype-2.6.3/include/" -I"d:/Monkey2-v1.1.08/modules/openal/openal-soft/include/" -I"d:/Monkey2-v1.1.08/modules/gles20/angle/include/" -I"d:/Monkey2-v1.1.08/modules/sdl2/SDL/include/" -o "D:/monkey2p/CivClone 0.75.buildv1.1.08/windows_debug/build/CivClone_040.75_0CivClone_040.75.cpp.o" "D:/monkey2p/CivClone 0.75.buildv1.1.08/windows_debug/src/CivClone_40.75_CivClone_40.75.cpp"In file included from D:/monkey2p/CivClone 0.75.buildv1.1.08/windows_debug/src/CivClone_40.75_CivClone_40.75.cpp:2:0:D:/monkey2p/CivClone 0.75.buildv1.1.08/windows_debug/include/CivClone_40.75_CivClone_40.75.h:2:24: warning: extra tokens at end of #ifndef directive#ifndef MX2_CIVCLONE_40.75_CIVCLONE_40.75_H^~~~~~~~~~~~~~~~~~~~D:/monkey2p/CivClone 0.75.buildv1.1.08/windows_debug/include/CivClone_40.75_CivClone_40.75.h:3:24: warning: ISO C++11 requires whitespace after the macro name#define MX2_CIVCLONE_40.75_CIVCLONE_40.75_H^~~~~~~~~~~~~~~~~~~~<-------------------------the end---------------------->d:/Monkey2-v1.1.08/modules/monkey/native/bbobject.h: In instantiation of 'void bbGCVar<T>::enqueue() [with T = t_std_collections_List_1Tt_default_unit_cargo_2]':d:/Monkey2-v1.1.08/modules/monkey/native/bbobject.h:116:10: required from 'bbGCVar<T>& bbGCVar<T>::operator=(T*) [with T = t_std_collections_List_1Tt_default_unit_cargo_2]'D:/monkey2p/CivClone 0.75.buildv1.1.08/windows_debug/src/CivClone_40.75_CivClone_40.75.cpp:9445:76: required from hered:/Monkey2-v1.1.08/modules/monkey/native/bbobject.h:100:18: error: cannot dynamic_cast '((bbGCVar<t_std_collections_List_1Tt_default_unit_cargo_2>*)this)->bbGCVar<t_std_collections_List_1Tt_default_unit_cargo_2>::_ptr' (of type 'struct t_std_collections_List_1Tt_default_unit_cargo_2*') to type 'struct bbGCNode*' (source is a pointer to incomplete type)*** Fatal mx2cc error ***Internal mx2cc build errorOther code he tried from my github does compile and work for him. I see references to code I made in the error log and I am thinking it might have to do with a newer c++ compiler? On my old 1.1.08 install it just works…
December 30, 2017 at 7:34 pm #12532I can only assume he/she is somehow using a ‘wrong’ version of mingw or something…not much I can do without more info.
January 1, 2018 at 12:18 am #12541He seems not to be getting the confirmation emails from this site registration. As far as I can tell he installed the mingw from the links on this site.
We are communicating on here (thread) : (you might need to select view from youtube )
January 1, 2018 at 8:03 pm #12552Ok, the person solved the problem. He changed the dots in the filename to underscore and then it compiled and ran without the error. It sort of looks like it is not possible with some code to have more . characters in the filename other then in front of the extension.
-
AuthorPosts
You must be logged in to reply to this topic.