Open MostafaDadkhah opened 4 years ago
There is one big bug in this library. Definition and declaration is in one file. So, when you you use aREST.h in more file... linker won't work.
@marcoschwartz do you agree? would you agree on splitting the lib into .h and .cpp file?
Yes, it will be nice.
Thnx
D. ---------- Původní e-mail ---------- Od: Daniele Palumbo @.> Komu: marcoschwartz/aREST @.> Datum: 26. 5. 2021 18:20:44 Předmět: Re: [marcoschwartz/aREST] multiple definition of void aREST:: addToBuffer in PlatformIO (#278) "
@marcoschwartz(https://github.com/marcoschwartz) do you agree? would you agree on splitting the lib into .h and .cpp file?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub (https://github.com/marcoschwartz/aREST/issues/278#issuecomment-848912265), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AAHACVK2HMNUOHSYR2DZXRLTPUNVNANCNFSM4KPTAENQ) . "
I just spent several hours trying to figure this out.
This makes it impossible to have multiple source files in a platformio project.
Has anyone figured out a work around?
I've stumbled upon the same problem and went ahead to split up the header into several files. Result is in the abovementioned pull request that seems to work well for me so far.
Hi I can't work with this library in PlatformIO. When building, I encounter the following Errors. What should I do?