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

Redeclaration issues in c++ - preprocessor directive #72

Open
raymondturrisi opened this issue Apr 15, 2024 · 0 comments
Open

Redeclaration issues in c++ - preprocessor directive #72

raymondturrisi opened this issue Apr 15, 2024 · 0 comments

Comments

@raymondturrisi
Copy link

bindings.h should include a preprocessor directive to prevent redeclarations when used in libraries, and in applications which use these libraries (easy issue to run into in MOOS or ROS). i.e.

bindings.h

#ifndef XYZ_HEADER
#define XYZ_HEADER
// Declarations
#endif

or

bindings.h

#pragma once
// Declarations

Currently I get compiler issues and have to manually add #pragma once at the top of the file after it is downloaded/installed, if I end up cleaning the build system.

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