Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict with M5-ADS1115 during linking #30

Open
2 tasks done
mgrouch opened this issue Dec 13, 2024 · 1 comment
Open
2 tasks done

Conflict with M5-ADS1115 during linking #30

mgrouch opened this issue Dec 13, 2024 · 1 comment

Comments

@mgrouch
Copy link

mgrouch commented Dec 13, 2024

Describe the bug

/home/runner/Arduino/libraries/M5Unit-ENV/src/I2C_Class.cpp:3: multiple definition of `I2C_Class::begin(TwoWire*, unsigned char, unsigned char, long)'; /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5-ADS1115/I2C_Class.cpp.o:/home/runner/Arduino/libraries/M5-ADS1115/src/I2C_Class.cpp:3: first defined here
/home/runner/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5Unit-ENV/I2C_Class.cpp.o: in function `I2C_Class::exist(unsigned char)':
/home/runner/Arduino/libraries/M5Unit-ENV/src/I2C_Class.cpp:12: multiple definition of `I2C_Class::exist(unsigned char)'; /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5-ADS1115/I2C_Class.cpp.o:/home/runner/Arduino/libraries/M5-ADS1115/src/I2C_Class.cpp:12: first defined here
/home/runner/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5Unit-ENV/I2C_Class.cpp.o: in function `I2C_Class::writeBytes(unsigned char, unsigned char, unsigned char*, unsigned char)':
/home/runner/Arduino/libraries/M5Unit-ENV/src/I2C_Class.cpp:23: multiple definition of `I2C_Class::writeBytes(unsigned char, unsigned char, unsigned char*, unsigned char)'; /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5-ADS1115/I2C_Class.cpp.o:/home/runner/Arduino/libraries/M5-ADS1115/src/I2C_Class.cpp:23: first defined here
/home/runner/.arduino15/packages/esp32/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5Unit-ENV/I2C_Class.cpp.o: in function `I2C_Class::readBytes(unsigned char, unsigned char, unsigned char*, unsigned char)':
/home/runner/Arduino/libraries/M5Unit-ENV/src/I2C_Class.cpp:32: multiple definition of `I2C_Class::readBytes(unsigned char, unsigned char, unsigned char*, unsigned char)'; /home/runner/work/bbn_esp32_sensors_hub/bbn_esp32_sensors_hub/build/libraries/M5-ADS1115/I2C_Class.cpp.o:/home/runner/Arduino/libraries/M5-ADS1115/src/I2C_Class.cpp:32: first defined here

To reproduce

Use both in same sketch.

Expected behavior

Success

Screenshots

No response

Environment

  • OS:
  • IDE &IDE Version:
  • Repository Version:

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • My report contains all necessary details
@mgrouch
Copy link
Author

mgrouch commented Dec 13, 2024

Ref

m5stack/M5-ADS1115#9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant