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 aout classname "Task" with library TaskScheduler #2

Open
PBrunot opened this issue Apr 30, 2023 · 0 comments
Open

Conflict aout classname "Task" with library TaskScheduler #2

PBrunot opened this issue Apr 30, 2023 · 0 comments

Comments

@PBrunot
Copy link

PBrunot commented Apr 30, 2023

Using the following platform.io dependencies:

lib_deps = 
	https://github.com/arkhipenko/TaskScheduler.git
        alexcajas/EmbeddedMqttBroker@^1.0.1

compilation fails:

In file included from .pio/libdeps/wokwi/WrapperFreeRTOS/src/WrapperFreeRTOS.h:7,
                 from .pio/libdeps/wokwi/EmbeddedMqttBroker/src/MqttBroker/MqttBroker.h:6,
                 from .pio/libdeps/wokwi/EmbeddedMqttBroker/src/EmbeddedMqttBroker.h:4,
                 from include/MockMQTTBroker.h:4,
                 from include/globals.h:15,
                 from src/main.cpp:8:
.pio/libdeps/wokwi/WrapperFreeRTOS/src/Task.h:78:7: error: redefinition of 'class Task'
 class Task {
       ^~~~
In file included from .pio/libdeps/wokwi/TaskScheduler/src/TaskScheduler.h:237,
                 from src/main.cpp:6:
.pio/libdeps/wokwi/TaskScheduler/src/TaskSchedulerDeclarations.h:162:7: note: previous definition of 'class Task'
 class Task {
       ^~~~

I think adding namespace could be good option to avoid the name conflict.

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