Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: [Error] Compile error using Many-Axis joystick lib and test file

Threaded View

  1. #1
    Junior Member
    Join Date
    Apr 2014
    Posts
    15

    [Error] Compile error using Many-Axis joystick lib and test file

    Hi!

    I'm using a Teensy 3.1 with the latest Arduino and Teensyduino on Linux.
    The 3.1 is set to 96MHz optimized and USB Type: Serial + Keyboard + Mouse + Joystick.

    I'm trying to use the extreme joystick lib located on the prjc forums here, provided by Mr. Stoffregen (attached to post too).
    The library files are extracted into ....arduino-1.6.4/hardware/teensy/avr/cores/teensy3/ and replace the included files .
    Loading the test sketch, "ExtremeJoystickTest.ino", I'm receiving the following compilation error(s):

    Code:
    In file included from /home/zelfor/Documents/arduino-1.6.4/hardware/teensy/avr/cores/teensy3/usb_inst.cpp:32:0:
    /home/zelfor/Documents/arduino-1.6.4/hardware/teensy/avr/cores/teensy3/usb_desc.h:304:3: error: conflicting declaration 'typedef struct usb_descriptor_list_t usb_descriptor_list_t'
    } usb_descriptor_list_t;
    ^
    In file included from /home/zelfor/Documents/arduino-1.6.4/hardware/teensy/avr/cores/teensy3/usb_serial.h:34:0,
    from /home/zelfor/Documents/arduino-1.6.4/hardware/teensy/avr/cores/teensy3/WProgram.h:24,
    from /home/zelfor/Documents/arduino-1.6.4/hardware/teensy/avr/cores/teensy3/usb_inst.cpp:31:
    /home/zelfor/Documents/arduino-1.6.4/hardware/teensy/avr/cores/teensy3/usb_desc.h:304:3: error: 'usb_descriptor_list_t' has a previous declaration as 'typedef struct usb_descriptor_list_t usb_descriptor_list_t'
    } usb_descriptor_list_t;
    ^
    Error compiling.
    I've got arduino under src control, so reverting back isn't an issue, but I was really looking forward to the improved joystick library.
    I'm hesitant to take a whack at fixing it myself without understanding fully the ramifications of any changes I might make.
    Attached Files Attached Files

Posting Permissions

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