This repository has been archived by the owner on Feb 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Multiple Definition when linking #5
Labels
wontfix
This will not be worked on
Comments
It looks like using inline on functions clears them from the multiple definitions list. e.g.:
|
Did you try and follow the instructions in multiFileProject example to avoid This library was used in many more complex projects / libraries without error by not carelessly and blindly including any Please spend some time to research which libraries is using and how to have some ideas, if necessary. I'm sure won't go back to the old Good Luck, |
Thank you @khoih-prog, I had not seen that example. Got me on my way. Cheers. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I am have included Ethernet_Generic.h in my main file for starting a webserver. I also have Ethernet_Generic included in another header file for a Modbus TCP class.
On compiling I get many multiple definition errors such as
c:/users/??????/.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: .pio/build/stm32-5mi/src/modbus/ModbusTCPSlave.cpp.o:(.bss._ZN10W5100Class4chipE+0x0): multiple definition of `W5100Class::chip'; .pio/build/stm32-5mi/src/main.cpp.o:(.bss._ZN10W5100Class4chipE+0x0): first defined here
Any help would be appreciated.
Expected behavior
When using previous Ethernet library, everything compiled as normal. Previous Library
Information
STM32
coreThe text was updated successfully, but these errors were encountered: