Giter Club home page Giter Club logo

homekit_aqi_desk's People

Stargazers

 avatar

Watchers

 avatar

homekit_aqi_desk's Issues

Compile problems

When trying to compile this code I am getting four variables with "multiple definition of ". The problem (in Red) sections from the Arduino error messages are listed below. Both the main sketch and homekit_config.c include the homekit_config.h file. It should not get loaded by both but appears to be doing that. Could the "#ifndef HOMEKIT_CONFIG__H__99D20943_B47B_45CD_AF23_FF497B9150D8" line not be working?

I have tried the Wemos D1 mini and NodeMCU boards.
The Arduino IDE also required for the folder name to match the name of the .ino sketch name.
I have tried moving lines 44-47 in homekit_config.h into different files without success.
Any suggestions?

/var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/esp8266_homekit_github.ino.cpp.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:44: multiple definition of current_heating_cooling_state'; /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/homekit_config.c.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:44: first defined here /Users/george/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/esp8266_homekit_github.ino.cpp.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:45: multiple definition of target_heating_cooling_state'; /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/homekit_config.c.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:45: first defined here
/Users/george/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/esp8266_homekit_github.ino.cpp.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:46: multiple definition of target_temperature'; /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/homekit_config.c.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:46: first defined here /Users/george/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld: /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/esp8266_homekit_github.ino.cpp.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:47: multiple definition of temperature_display_unit'; /var/folders/q8/ld8hb0dj2074pkp69s2v65z40000gn/T/arduino_build_365515/sketch/homekit_config.c.o:/Users/george/Downloads/Homekit_AQI_Desk-master/esp8266_homekit_github/homekit_config.h:47: first defined here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.