Pages: 1 2 »
  Print  
Author Topic: Lots of compile errors  (Read 47426 times)
Offline (Male) Yambam
Posted on: June 13, 2016, 02:36:32 pm

Member
Location: The Netherlands
Joined: May 2016
Posts: 67

View Profile WWW
I get lots of errors when I try to compile my project in ENIGMA, including errors with the max function. How can I fix these? And also, is there an alternative for "else if"? Using that combination gives me a warning.

Code: [Select]
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_project_load(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:157:102: error: 'recent' was not declared in this scope
             for(enigma::varaccess_i(int(self))= min((enigma::varargs(), enigma::varaccess_length(int(recent))- 1, 6)); enigma::varaccess_i(int(self))>= 0; enigma::varaccess_i(int(self))-= 1)
                                                                                                      ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:163:40: error: 'recent' was not declared in this scope
             enigma::varaccess_name(int(recent))[int(0)]="seperator";
                                        ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:168:100: error: 'recent' was not declared in this scope
           for(enigma::varaccess_i(int(self))= min((enigma::varargs(), enigma::varaccess_length(int(recent))- 1, 6)); enigma::varaccess_i(int(self))>= 0; enigma::varaccess_i(int(self))-= 1)
                                                                                                    ^
                            ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:163:40: error: 'recent' was not declared in this scope
             enigma::varaccess_name(int(recent))[int(0)]="seperator";
                                        ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:168:100: error: 'recent' was not declared in this scope
           for(enigma::varaccess_i(int(self))= min((enigma::varargs(), enigma::varaccess_length(int(recent))- 1, 6)); enigma::varaccess_i(int(self))>= 0; enigma::varaccess_i(int(self))-= 1)
                                                                                                    ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:186:38: error: 'recent' was not declared in this scope
           enigma::varaccess_name(int(recent))[int(0)]= enigma::varaccess_name(int(other));
                                      ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:186:38: error: 'recent' was not declared in this scope
           enigma::varaccess_name(int(recent))[int(0)]= enigma::varaccess_name(int(other));
                                      ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_resources_draw(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:346:91: error: '_w' was not declared in this scope
               enigma::varaccess_scale(int(self))= min((enigma::varargs(), size / (double) _w, size / (double) _h));
                                                                                           ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:346:111: error: '_h' was not declared in this scope
               enigma::varaccess_scale(int(self))= min((enigma::varargs(), size / (double) _w, size / (double) _h));
                                                                                                               ^
In file included from SHELLmain.cpp:109:0:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:356:91: error: '_w' was not declared in this scope
               enigma::varaccess_scale(int(self))= min((enigma::varargs(), size / (double) _w, size / (double) _h));
                                                                                           ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:356:111: error: '_h' was not declared in this scope
               enigma::varaccess_scale(int(self))= min((enigma::varargs(), size / (double) _w, size / (double) _h));
                                                                                                               ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_resources_draw(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:346:91: error: '_w' was not declared in this scope
               enigma::varaccess_scale(int(self))= min((enigma::varargs(), size / (double) _w, size / (double) _h));
                                                                                           ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:346:111: error: '_h' was not declared in this scope
               enigma::varaccess_scale(int(self))= min((enigma::varargs(), size / (double) _w, size / (double) _h));
                                                                                                               ^
In file included from SHELLmain.cpp:109:0:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:356:91: error: '_w' was not declared in this scope
               enigma::varaccess_scale(int(self))= min((enigma::varargs(), size / (double) _w, size / (double) _h));
                                                                                           ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:356:111: error: '_h' was not declared in this scope
               enigma::varaccess_scale(int(self))= min((enigma::varargs(), size / (double) _w, size / (double) _h));
                                                                                                               ^
In file included from SHELLmain.cpp:105:0:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:441:106: error: 'shift' was not declared in this scope
         :: draw_line_dashed(xx - size / (double) 2, max((enigma::varargs(), yy + size / (double) 2, yy - shift)), xx - size / (double) 2, Y - size / (double) 2);
                                                                                                          ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectdeclarations.h:70:62: note: in definition of macro 'draw_line_dashed'
 #define draw_line_dashed(arguments...) _SCR_draw_line_dashed(arguments)
                                                              ^
In file included from SHELLmain.cpp:105:0:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:441:106: error: 'shift' was not declared in this scope
         :: draw_line_dashed(xx - size / (double) 2, max((enigma::varargs(), yy + size / (double) 2, yy - shift)), xx - size / (double) 2, Y - size / (double) 2);
                                                                                                          ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectdeclarations.h:70:62: note: in definition of macro 'draw_line_dashed'
 #define draw_line_dashed(arguments...) _SCR_draw_line_dashed(arguments)
                                                              ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_draw_scrollbar(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1390:205: error: 'dy' was not declared in this scope
           :: data_set(data, "value", median((enigma::varargs(), (mouse_y - y1)/ (double)(y2 - y1 - 2 * (x2 - x1))* (:: data_get(data, "max", 1)- :: data_get(data, "min", 0))+ :: data_get(data, "min", 0)- dy, :: data_get(data, "min", 0), :: data_get(data, "max", 1)- 1)));
                                                                                                                                                                                                             ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectdeclarations.h:50:46: note: in definition of macro 'data_set'
 #define data_set(arguments...) _SCR_data_set(arguments)
                                              ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_draw_scrollbar(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1390:205: error: 'dy' was not declared in this scope
           :: data_set(data, "value", median((enigma::varargs(), (mouse_y - y1)/ (double)(y2 - y1 - 2 * (x2 - x1))* (:: data_get(data, "max", 1)- :: data_get(data, "min", 0))+ :: data_get(data, "min", 0)- dy, :: data_get(data, "min", 0), :: data_get(data, "max", 1)- 1)));
                                                                                                                                                                                                             ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectdeclarations.h:50:46: note: in definition of macro 'data_set'
 #define data_set(arguments...) _SCR_data_set(arguments)
                                              ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1526:200: error: 'dx' was not declared in this scope
           :: data_set(data, "value", median((enigma::varargs(), (mouse_x)/ (double)(x2 - x1 - 2 * (y2 - y1))* (:: data_get(data, "max", 1)- :: data_get(data, "min", 0))+ :: data_get(data, "min", 0)- dx, :: data_get(data, "min", 0), :: data_get(data, "max", 1)- 1)));
                                                                                                                                                                                                        ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectdeclarations.h:50:46: note: in definition of macro 'data_set'
 #define data_set(arguments...) _SCR_data_set(arguments)
                                              ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1536:93: error: 'scroll_speed' was not declared in this scope
           :: data_set(data, "value", median((enigma::varargs(), :: data_get(data, "value")+ scroll_speed, :: data_get(data, "min", 0), :: data_get(data, "max", 1)- 1)));
                                                                                             ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectdeclarations.h:50:46: note: in definition of macro 'data_set'
 #define data_set(arguments...) _SCR_data_set(arguments)
                                              ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1526:200: error: 'dx' was not declared in this scope
           :: data_set(data, "value", median((enigma::varargs(), (mouse_x)/ (double)(x2 - x1 - 2 * (y2 - y1))* (:: data_get(data, "max", 1)- :: data_get(data, "min", 0))+ :: data_get(data, "min", 0)- dx, :: data_get(data, "min", 0), :: data_get(data, "max", 1)- 1)));
                                                                                                                                                                                                        ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectdeclarations.h:50:46: note: in definition of macro 'data_set'
 #define data_set(arguments...) _SCR_data_set(arguments)
                                              ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1536:93: error: 'scroll_speed' was not declared in this scope
           :: data_set(data, "value", median((enigma::varargs(), :: data_get(data, "value")+ scroll_speed, :: data_get(data, "min", 0), :: data_get(data, "max", 1)- 1)));
                                                                                             ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectdeclarations.h:50:46: note: in definition of macro 'data_set'
 #define data_set(arguments...) _SCR_data_set(arguments)
                                              ^
In file included from SHELLmain.cpp:109:0:
In file included from SHELLmain.cpp:109:0:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1546:78: error: 'scroll_speed' was not declared in this scope
           enigma::varaccess_scroll_speed(int(self))= min((enigma::varargs(), scroll_speed + scroll_friction, 0));
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1546:78: error: 'scroll_speed' was not declared in this scope
                                                                              ^
           enigma::varaccess_scroll_speed(int(self))= min((enigma::varargs(), scroll_speed + scroll_friction, 0));
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1546:93: error: 'scroll_friction' was not declared in this scope
                                                                              ^
           enigma::varaccess_scroll_speed(int(self))= min((enigma::varargs(), scroll_speed + scroll_friction, 0));
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:1546:93: error: 'scroll_friction' was not declared in this scope
                                                                                             ^
           enigma::varaccess_scroll_speed(int(self))= min((enigma::varargs(), scroll_speed + scroll_friction, 0));
                                                                                             ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_window_get_maximalized(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:2595:24: error: lvalue required as left operand of assignment
   return window_get_x()= 0 && window_get_y()<= 40 && window_get_y()>= 1 && argument0 >= display_get_width()- 8;
                        ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_window_get_maximalized(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:2595:24: error: lvalue required as left operand of assignment
   return window_get_x()= 0 && window_get_y()<= 40 && window_get_y()>= 1 && argument0 >= display_get_width()- 8;
                        ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_draw_tab(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:3439:7: error: '_delete' was not declared in this scope
       _delete = 1; break;
       ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_draw_tab(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:3439:7: error: '_delete' was not declared in this scope
       _delete = 1; break;
       ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_window_init(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:3747:70: error: 'depth' was not declared in this scope
       enigma::glaccess(int(other))-> depth = min((enigma::varargs(), depth - 1, enigma::glaccess(int(other))-> depth));
                                                                      ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_window_init(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:3747:70: error: 'depth' was not declared in this scope
       enigma::glaccess(int(other))-> depth = min((enigma::varargs(), depth - 1, enigma::glaccess(int(other))-> depth));
                                                                      ^

C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_window_set_foreground(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:4059:42: error: 'depth' was not declared in this scope
         ndepth = min((enigma::varargs(), depth, ndepth));

C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_window_set_foreground(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:4059:42: error: 'depth' was not declared in this scope
         ndepth = min((enigma::varargs(), depth, ndepth));
                                          ^
In file included from SHELLmain.cpp:109:0:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_form_object_draw(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:4434:84: error: '_w' was not declared in this scope
         enigma::varaccess_scale(int(self))= min((enigma::varargs(), 128 / (double) _w, 128 / (double) _h));
                                                                                    ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:4434:103: error: '_h' was not declared in this scope
         enigma::varaccess_scale(int(self))= min((enigma::varargs(), 128 / (double) _w, 128 / (double) _h));
                                                                                                       ^
In file included from SHELLmain.cpp:109:0:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_form_object_draw(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:4434:84: error: '_w' was not declared in this scope
         enigma::varaccess_scale(int(self))= min((enigma::varargs(), 128 / (double) _w, 128 / (double) _h));
                                                                                    ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:4434:103: error: '_h' was not declared in this scope
         enigma::varaccess_scale(int(self))= min((enigma::varargs(), 128 / (double) _w, 128 / (double) _h));
                                                                                                       ^
In file included from SHELLmain.cpp:109:0:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_form_sound_draw(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:5601:84: error: '_w' was not declared in this scope
         enigma::varaccess_scale(int(self))= min((enigma::varargs(), 128 / (double) _w, 128 / (double) _h));
                                                                                    ^
In file included from SHELLmain.cpp:109:0:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_form_sound_draw(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:5601:84: error: '_w' was not declared in this scope
         enigma::varaccess_scale(int(self))= min((enigma::varargs(), 128 / (double) _w, 128 / (double) _h));
                                                                                    ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:5601:103: error: '_h' was not declared in this scope
         enigma::varaccess_scale(int(self))= min((enigma::varargs(), 128 / (double) _w, 128 / (double) _h));
                                                                                                       ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:5601:103: error: '_h' was not declared in this scope
         enigma::varaccess_scale(int(self))= min((enigma::varargs(), 128 / (double) _w, 128 / (double) _h));
                                                                                                       ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_form_room_draw(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:5863:99: error: '_w' was not declared in this scope
           enigma::varaccess_scale(int(self))= min((enigma::varargs(), min((enigma::varargs(), 80, _w))/ (double) _w, min((enigma::varargs(), 50, _h))/ (double) _h));
                                                                                                   ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:5863:146: error: '_h' was not declared in this scope
           enigma::varaccess_scale(int(self))= min((enigma::varargs(), min((enigma::varargs(), 80, _w))/ (double) _w, min((enigma::varargs(), 50, _h))/ (double) _h));
                                                                                                                                                  ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_form_room_draw(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:5863:99: error: '_w' was not declared in this scope
           enigma::varaccess_scale(int(self))= min((enigma::varargs(), min((enigma::varargs(), 80, _w))/ (double) _w, min((enigma::varargs(), 50, _h))/ (double) _h));
                                                                                                   ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:5863:146: error: '_h' was not declared in this scope
           enigma::varaccess_scale(int(self))= min((enigma::varargs(), min((enigma::varargs(), 80, _w))/ (double) _w, min((enigma::varargs(), 50, _h))/ (double) _h));
                                                                                                                                                  ^

C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_draw_textfield(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:6389:54: error: 'xx' was not declared in this scope
           draw_rectangle(min((enigma::varargs(), sx, xx)), y1 + 3, :: max2(sx, xx)+ 1, y1 + 4 + h, 0);
                                                      ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_draw_textfield(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:6389:54: error: 'xx' was not declared in this scope
           draw_rectangle(min((enigma::varargs(), sx, xx)), y1 + 3, :: max2(sx, xx)+ 1, y1 + 4 + h, 0);
                                                      ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_get_kind(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:6935:154: error: '_char' was not declared in this scope
       while((string_length(string_digits(enigma::varaccess__char(int(self))))+ (ord(enigma::varaccess__char(int(self)))== median((enigma::varargs(), ord(_char), ord("a"), ord("f"))))
                                                                                                                                                          ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:6936:11: error: 'hex' was not declared in this scope
         * hex + (ord(_char)== median((enigma::varargs(), ord(_char), ord("A"), ord("F"))))* enigma::varaccess_hex(int(self))+ :: string_is_at(".", argument0, pos)!= 0))
           ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_get_kind(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:6935:154: error: '_char' was not declared in this scope
       while((string_length(string_digits(enigma::varaccess__char(int(self))))+ (ord(enigma::varaccess__char(int(self)))== median((enigma::varargs(), ord(_char), ord("a"), ord("f"))))
                                                                                                                                                          ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:6936:11: error: 'hex' was not declared in this scope
         * hex + (ord(_char)== median((enigma::varargs(), ord(_char), ord("A"), ord("F"))))* enigma::varaccess_hex(int(self))+ :: string_is_at(".", argument0, pos)!= 0))
           ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:6963:76: error: 'kind_length' was not declared in this scope
     enigma::varaccess__value(int(self))= string_copy(argument0, argument1, kind_length);
                                                                            ^
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:6963:76: error: 'kind_length' was not declared in this scope
     enigma::varaccess__value(int(self))= string_copy(argument0, argument1, kind_length);
                                                                            ^
mingw32-make.exe[1]: Leaving directory `D:/ENIGMA/ENIGMA/enigma-dev/ENIGMAsystem/SHELL'
mingw32-make.exe[1]: Leaving directory `D:/ENIGMA/ENIGMA/enigma-dev/ENIGMAsystem/SHELL'
mingw32-make.exe: *** [Game] Error 2
mingw32-make.exe: *** [Game] Error 2

Last question, I get 25 variables "not declared in this scope", but it all worked in GameMaker. What am I missing here?
« Last Edit: June 14, 2016, 08:49:22 am by Yambam » Logged

Offline (Male) Yambam
Reply #1 Posted on: June 14, 2016, 08:39:08 am

Member
Location: The Netherlands
Joined: May 2016
Posts: 67

View Profile WWW
One error that I don't understand:

Code: [Select]
d:\enigma\enigma\mingw32\include\c++\4.8.2\bits\basic_string.h:554:7: note:   no known conversion for argument 1 from 'variant' to 'const char*'
EDIT: I fixed it along with a wrongly placed assignment operator (it was meant as a comparison).
« Last Edit: June 14, 2016, 09:03:17 am by Yambam » Logged

Offline (Male) Goombert
Reply #2 Posted on: June 14, 2016, 02:19:47 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
How are you calling min/max? There is currently a known parser bug that hasn't been fixed.

https://github.com/enigma-dev/enigma-dev/issues/214
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) Yambam
Reply #3 Posted on: June 14, 2016, 02:29:24 pm

Member
Location: The Netherlands
Joined: May 2016
Posts: 67

View Profile WWW
How are you calling min/max? There is currently a known parser bug that hasn't been fixed.

https://github.com/enigma-dev/enigma-dev/issues/214
I solved it by making custom functions min2, max2 and median2, and then I did some find/replace. I'm through all the errors, but now it freezes while the screen is still black... Could you help me finding the problem? http://enigma-dev.org/forums/index.php?topic=2673.msg25961#new
Logged

Offline (Male) Goombert
Reply #4 Posted on: June 14, 2016, 02:53:37 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
Read the following tutorial that explains how to debug the game with GDB and show us a stack trace:

http://enigma-dev.org/forums/index.php?topic=1815
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) Yambam
Reply #5 Posted on: June 14, 2016, 03:41:12 pm

Member
Location: The Netherlands
Joined: May 2016
Posts: 67

View Profile WWW
I don't know if you need this, but I got this:
Code: [Select]
Michael@GIGABYTE-2 /d/ENIGMA/ENIGMA
$ gdb C:\Users\Michael\AppData\Local\Temp\egm1662160408106033879.exe
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-w64-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
C:UsersMichaelAppDataLocalTempegm1662160408106033879.exe: No such file or direct
ory.
(gdb) run
Starting program:
No executable specified, use `target exec'.
(gdb) target exec
No executable file now.
<\Michael\AppData\Local\Temp\egm1662160408106033879.exe
(gdb) run
Starting program: C:\Users\Michael\AppData\Local\Temp\egm1662160408106033879.exe

[New Thread 3120.0x1a8]
warning: Can not parse XML library list; XML support was disabled at compile tim
e
[New Thread 3120.0xe18]
[New Thread 3120.0x1d0]
[New Thread 3120.0xd58]
[New Thread 3120.0x9a0]
Initializing audio system...
Opening ALURE devices.
[New Thread 3120.0xf7c]
[New Thread 3120.0x4f4]
width: 200height: 200transparent: 0smoothEdges: 0preload: 0useAsTileset: 0tileWi
dth: 16tileHeight: 16hOffset: 0vOffset: 0hSep: 0vSep: 0Alloc size: 3484Adding ba
ckground: 0

width: 200height: 200transparent: 0smoothEdges: 0preload: 0useAsTileset: 0tileWi
dth: 16tileHeight: 16hOffset: 0vOffset: 0hSep: 0vSep: 0Alloc size: 2411Adding ba
ckground: 1


Program received signal SIGSEGV, Segmentation fault.
0x008ed067 in ?? ()
(gdb) bt
#0  0x008ed067 in ?? ()
#1  0x0043bdcf in ?? ()
#2  0x0053bb5c in ?? ()
#3  0x006fe199 in ?? ()
#4  0x006fe38d in ?? ()
#5  0x00408f8b in ?? ()
#6  0x00633306 in ?? ()
#7  0x0090879d in ?? ()
#8  0x004013de in ?? ()
#9  0x74e433ca in ?? ()
#10 0x771b9ed2 in ?? ()
#11 0x771b9ea5 in ?? ()
#12 0x00000000 in ?? ()
(gdb)
Logged

Offline (Male) Goombert
Reply #6 Posted on: June 14, 2016, 03:45:44 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
Did you run the game in debug mode? You have to hit the debug icon not the run icon and then do GDB. I think you hit the run button because it's showing ?? in the back trace which suggests there's no debugging symbols. If you run it in debug mode that will tell us file names and line numbers of the errors.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) Yambam
Reply #7 Posted on: June 16, 2016, 02:24:19 am

Member
Location: The Netherlands
Joined: May 2016
Posts: 67

View Profile WWW
Did you run the game in debug mode? You have to hit the debug icon not the run icon and then do GDB. I think you hit the run button because it's showing ?? in the back trace which suggests there's no debugging symbols. If you run it in debug mode that will tell us file names and line numbers of the errors.
I think GDB is showing the all the lines now.

Code: [Select]
nolan@HP-COMPAQ-5750 /f/ENIGMA/ENIGMA
$ gdb "C:\Users\nolan\AppData\Local\Temp\egm3629380217952681115.exe"
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-w64-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from C:\Users\nolan\AppData\Local\Temp\egm3629380217952681115.ex
e...done.
(gdb) run
Starting program: C:\Users\nolan\AppData\Local\Temp\egm3629380217952681115.exe
[New Thread 324.0x3ac]
warning: Can not parse XML library list; XML support was disabled at compile tim
e
Initializing audio system...
Opening ALURE devices.
[New Thread 324.0x127c]
[New Thread 324.0x934]
width: 200height: 200transparent: 0smoothEdges: 0preload: 0useAsTileset: 0tileWi
dth: 16tileHeight: 16hOffset: 0vOffset: 0hSep: 0vSep: 0Alloc size: 3484Adding ba
ckground: 0

width: 200height: 200transparent: 0smoothEdges: 0preload: 0useAsTileset: 0tileWi
dth: 16tileHeight: 16hOffset: 0vOffset: 0hSep: 0vSep: 0Alloc size: 2411Adding ba
ckground: 1


Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x007c9e95 in enigma_user::surface_create (width=800, height=600,
    depthbuffer=false) at Graphics_Systems/OpenGL1/GLsurface.cpp:127
#2  0x00664727 in enigma::OBJ_obj_controller::myevent_create (this=0x21be740)
    at C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfu
nctionality.h:8232
#3  0x008834d5 in enigma::roomstruct::gotome (
    this=0xbdc8a8 <enigma::grd_rooms+1192>, gamestart=false)
    at Universal_System/roomsystem.cpp:193
#4  0x008877c8 in enigma::rooms_switch ()
    at Universal_System/roomsystem.cpp:835
#5  0x00407c69 in enigma::ENIGMA_events ()
    at C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_events.h
:138
#6  0x007a5555 in WinMain@16 (hInstance=0x400000, hPrevInstance=0x0,
    lpCmdLine=0x24247e7 "", iCmdShow=10)
    at Platforms/Win32/WINDOWSmain.cpp:356
#7  0x00b116cd in main ()
(gdb)

room_goto_next() resulted in an error BTW, so I used room_goto(rm_main) instead, maybe that problem is related?
« Last Edit: June 16, 2016, 02:32:21 am by Yambam » Logged

Offline (Male) Goombert
Reply #8 Posted on: June 16, 2016, 02:32:34 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
Code: [Select]
#0  0x00000000 in ?? ()
#1  0x007c9e95 in enigma_user::surface_create (width=800, height=600,
    depthbuffer=false) at Graphics_Systems/OpenGL1/GLsurface.cpp:127

Well that tells you right there... surface creation failed. You likely have poor OpenGL hardware support. You can find out or I can tell you if you run a hardware test:
http://enigma-dev.org/forums/index.php?topic=1131.0

Try Build->Settings->ENIGMA->API->Graphics->Direct3D9 and tell me how it goes.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) Yambam
Reply #9 Posted on: June 16, 2016, 02:46:49 am

Member
Location: The Netherlands
Joined: May 2016
Posts: 67

View Profile WWW
I've tried compiling with OpenGL on three HP computers, it won't work. These are the contents of glewinfo.txt:
http://pastebin.com/RGd3QH5r

... when I try compiling with DirectX 9.0, it won't compile:
http://pastebin.com/BY3W9wCr
Logged

Offline (Male) Goombert
Reply #10 Posted on: June 16, 2016, 02:54:06 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
Ah that's from TheExDeus making depth buffers optional for surfaces. Here's a simple fix to try:

1) Go to the file ENIGMA/enigma-dev/ENIGMAsystem/SHELL/Graphics_Systems/Direct3D9/DX9surface.cpp
2) Add a parameter ", bool depthbuffer)" to surface_create exactly like that.
3) Save the file and try Direct3D9 again.

He didn't update the Direct3D subsystems when he made that change.
https://github.com/enigma-dev/enigma-dev/blob/483b2c54176df1ff6333a2ecd76f677c2a53d033/ENIGMAsystem/SHELL/Graphics_Systems/Direct3D9/DX9surface.cpp#L62

Please let me know if that works.

Regarding the GLEW file, yes that is the problem, I know for sure now. Your OpenGL does not support anything in GL 3.1 or later and framebuffer object's (the OGL equivalent of Direct3D surfaces) were introduced in OGL 3.2.

Quote
GL_VERSION_3_1:                                                MISSING
---------------
  glDrawArraysInstanced:                                       MISSING
  glDrawElementsInstanced:                                     MISSING
  glPrimitiveRestartIndex:                                     MISSING
  glTexBuffer:                                                 MISSING
 
GL_VERSION_3_2:                                                MISSING
---------------
  glFramebufferTexture:                                        MISSING
  glGetBufferParameteri64v:                                    MISSING
  glGetInteger64i_v:                                           MISSING
« Last Edit: June 16, 2016, 02:56:25 am by BlitzBert » Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) Yambam
Reply #11 Posted on: June 16, 2016, 03:36:36 am

Member
Location: The Netherlands
Joined: May 2016
Posts: 67

View Profile WWW
Installed newer DirectX 9.0, it's coming further now. Now I need to change the code a lot since it uses argument_count. ;D
Logged

Offline (Unknown gender) TheExDeus
Reply #12 Posted on: June 16, 2016, 04:01:38 am

Developer
Joined: Apr 2008
Posts: 1860

View Profile
Yeah, sorry I didn't change DX9.

You do have a 12 years old graphics card. That does limit on what you can do with it. I personally don't plan supporting anything nearly as old in the future, but that will probably be outside ENIGMA.
Logged
Offline (Male) Goombert
Reply #13 Posted on: June 16, 2016, 04:22:06 am

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
Ah yeah we currently do not have support for argument_count, I see TheExDeus mentioned that to someone else a while ago. That's a parser thingy.
http://enigma-dev.org/forums/index.php?topic=2637.msg25647#msg25647

I went and added it to polygonz old list of parser/compiler issues.
https://github.com/enigma-dev/enigma-dev/issues/81
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) Yambam
Reply #14 Posted on: June 16, 2016, 05:13:55 am

Member
Location: The Netherlands
Joined: May 2016
Posts: 67

View Profile WWW
Now it says trying to access uninitialized variable. Where can I see what variable it's talking about?
Logged

Pages: 1 2 »
  Print