Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Bug Reports
  3. Error Compiling

Error Compiling

Scheduled Pinned Locked Moved Bug Reports
6 Posts 4 Posters 3.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • b0rmannB Offline
    b0rmannB Offline
    b0rmann
    wrote on last edited by
    #1

    all is broken in last version :)


    In file included from EnergyMeterPulseSensor.ino:38:0:
    /home/andrej/sketchbook/libraries/MySensors/MySensor.h:158:70: error: expected type-specifier before ‘MyHwDriver’
    MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
    ^
    EnergyMeterPulseSensor.ino:47:10: error: call to ‘MySensor::MySensor(MyTransport&, MyHw&)’ uses the default argument for parameter 2, which is not yet defined


    In file included from DallasTemperatureSensor.ino:27:0:
    /home/andrej/sketchbook/libraries/MySensors/MySensor.h:158:70: error: expected type-specifier before ‘MyHwDriver’
    MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
    ^
    DallasTemperatureSensor.ino:39:10: error: call to ‘MySensor::MySensor(MyTransport&, MyHw&)’ uses the default argument for parameter 2, which is not yet defined

    1 Reply Last reply
    0
    • A Offline
      A Offline
      ampmendes
      wrote on last edited by
      #2

      I am trying to compile the SerialGateway.ino example and keep getting the same error

      MySensors/MySensor.h:158:70: error: expected type-specifier before ‘MyHwDriver’
      MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()

      I am using the arduino ide and downloaded the 1.5 version of the library. With the 1.4 version it compiles ok, but i want to create a serial gateway with RFM69 Radio

      I appreciate the help, i am new to this and i am discovering.
      Thanks

      SparkmanS 1 Reply Last reply
      0
      • A ampmendes

        I am trying to compile the SerialGateway.ino example and keep getting the same error

        MySensors/MySensor.h:158:70: error: expected type-specifier before ‘MyHwDriver’
        MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()

        I am using the arduino ide and downloaded the 1.5 version of the library. With the 1.4 version it compiles ok, but i want to create a serial gateway with RFM69 Radio

        I appreciate the help, i am new to this and i am discovering.
        Thanks

        SparkmanS Offline
        SparkmanS Offline
        Sparkman
        Hero Member
        wrote on last edited by
        #3

        @ampmendes Did you delete all 1.4 libraries before loading the 1.5 ones and then restarting the IDE? These types of errors are typically caused by having mutliple files with the same name.

        Cheers
        Al

        b0rmannB 1 Reply Last reply
        0
        • SparkmanS Sparkman

          @ampmendes Did you delete all 1.4 libraries before loading the 1.5 ones and then restarting the IDE? These types of errors are typically caused by having mutliple files with the same name.

          Cheers
          Al

          b0rmannB Offline
          b0rmannB Offline
          b0rmann
          wrote on last edited by
          #4

          @Sparkman i do not use IDE...

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #5

            Then remove old MySensors library (and sketch) from your codebender account before cloning sketch again from mysensors.org (with libraries).

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ampmendes
              wrote on last edited by
              #6

              Thank for the reply, but i already found the problem, i was using an old IDE, i installed the last version and it fixed the problem

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              16

              Online

              11.7k

              Users

              11.2k

              Topics

              113.1k

              Posts


              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular