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

Header Guards #138

Open
Supetorus opened this issue Apr 25, 2023 · 0 comments
Open

Header Guards #138

Supetorus opened this issue Apr 25, 2023 · 0 comments

Comments

@Supetorus
Copy link

Is there a reason there aren't header guards? I tried to make a button class that drew a quad and text, but when I included <simple2d.h> in both my button header and my main cpp it gave redefinition errors. I just put a header guard in the simple2d.h file and it compiled fine. Seems like this should already be there. I'm a noob so am I just using the library incorrectly?

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