Close



Results 1 to 10 of 109

Threaded View

  1. #23
    Student
    Join Date
    Mar 2015
    Location
    Coraopolis, PA USA
    Posts
    20

    Getting errors when compiling configuration.h

    I was trying to compile the configuration.h file tonight in preparation for Auto Bed Leveling and I get the following errors when compiling. I know nothing about this stuff so I am hoping someone who does know something about it can help me out. Below is the output:

    Code:
    Arduino: 1.6.1 (Windows XP), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
    
    Marlin_main.cpp:958:7: error: 'X_MAX_LENGTH' was not declared in this scope
    
         { X_##CONFIG, Y_##CONFIG, Z_##CONFIG };     \
    
           ^
    
    Marlin_main.cpp:965:1: note: in expansion of macro 'XYZ_CONSTS_FROM_CONFIG'
    
     XYZ_CONSTS_FROM_CONFIG(float, max_length,      MAX_LENGTH);
    
     ^
    
    Marlin_main.cpp:958:19: error: 'Y_MAX_LENGTH' was not declared in this scope
    
         { X_##CONFIG, Y_##CONFIG, Z_##CONFIG };     \
    
                       ^
    
    Marlin_main.cpp:965:1: note: in expansion of macro 'XYZ_CONSTS_FROM_CONFIG'
    
     XYZ_CONSTS_FROM_CONFIG(float, max_length,      MAX_LENGTH);
    
     ^
    
    Marlin_main.cpp:958:31: error: 'Z_MAX_LENGTH' was not declared in this scope
    
         { X_##CONFIG, Y_##CONFIG, Z_##CONFIG };     \
    
                                   ^
    
    Marlin_main.cpp:965:1: note: in expansion of macro 'XYZ_CONSTS_FROM_CONFIG'
    
     XYZ_CONSTS_FROM_CONFIG(float, max_length,      MAX_LENGTH);
    
     ^
    
    In file included from Marlin.h:30:0,
    
                     from Marlin_main.cpp:30:
    
    Marlin_main.cpp: In function 'void gcode_G28()':
    
    Configuration.h:486:36: error: 'X_MAX_LENGTH' was not declared in this scope
    
         #define Z_SAFE_HOMING_X_POINT (X_MAX_LENGTH/2)    // X point for Z homing when homing all axis (G28)
    
                                        ^
    
    C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:88:24: note: in definition of macro 'round'
    
     #define round(x)     ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
    
                            ^
    
    Marlin_main.cpp:1892:39: note: in expansion of macro 'Z_SAFE_HOMING_X_POINT'
    
               destination[X_AXIS] = round(Z_SAFE_HOMING_X_POINT - X_PROBE_OFFSET_FROM_EXTRUDER);
    
                                           ^
    
    Configuration.h:487:36: error: 'Y_MAX_LENGTH' was not declared in this scope
    
         #define Z_SAFE_HOMING_Y_POINT (Y_MAX_LENGTH/2)    // Y point for Z homing when homing all axis (G28)
    
                                        ^
    
    C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:88:24: note: in definition of macro 'round'
    
     #define round(x)     ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
    
                            ^
    
    Marlin_main.cpp:1893:39: note: in expansion of macro 'Z_SAFE_HOMING_Y_POINT'
    
               destination[Y_AXIS] = round(Z_SAFE_HOMING_Y_POINT - Y_PROBE_OFFSET_FROM_EXTRUDER);
    
                                           ^
    
    Marlin_main.cpp: In function 'void gcode_M48()':
    
    Marlin_main.cpp:2943:51: error: 'X_MAX_LENGTH' was not declared in this scope
    
             radius = (unsigned long)millis() % (long)(X_MAX_LENGTH / 4);      // limit how far out to go
    
                                                       ^
    
    Error compiling.
    
      This report would have more information with
      "Show verbose output during compilation"
      enabled in File > Preferences.
    
    I have attached my Configuration.h file if someone could take a look at it and see if maybe I missed something. Thanks
    Configuration.zip
    Last edited by walkercreations; 03-27-2015 at 06:42 PM. Reason: added attachment

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •