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

multiple definition of ... #9

Open
RaphyStark opened this issue Jun 11, 2023 · 0 comments
Open

multiple definition of ... #9

RaphyStark opened this issue Jun 11, 2023 · 0 comments

Comments

@RaphyStark
Copy link

Hello,

I'm working with https://github.com/elegooofficial/ELEGOO-TumbllerV1.1-Self-Balancing-Car-Tutorial, which is the software of the Tumbler Self Balancing Car (a robot for fun but also education seeing that the source code is open source).
I'm struggling with the "include "PinChangeInt.h".
I want to be able to call this header file in each .cpp I need it.
Previously, it was called only once in the main.cpp, but it force the user to declare and define his variables and functions directly in the header files of his project.
If I want to declare my variables and functions in hpp files, and define them in cpp files, I'll have to include PinChangeInt in every cpp file who need it. This cause "multiple definition of (things in PinChangeInt.h)".

What can you advise me ??

Thank you !
Raphaël.

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