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

sdram.h gets duplicate class SDRAMClass if included twice #808

Closed
dav322 opened this issue Dec 20, 2023 · 0 comments · Fixed by #833
Closed

sdram.h gets duplicate class SDRAMClass if included twice #808

dav322 opened this issue Dec 20, 2023 · 0 comments · Fixed by #833
Labels
bug Something isn't working M7

Comments

@dav322
Copy link

dav322 commented Dec 20, 2023

file path on my machine is:
C:\Users\david\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.0.10\libraries\Portenta_SDRAM\src\SDRAM.h
need to add
#ifndef sdramh
#define sdramh
at beginning of file
and
#endif
at end of file

To reproduce
include "sdram.h" twice

Expected behavior
not generate linker error

Arduino IDE version 2.2.1 updated to nightly build 12/14/2023

Operating system
Windows

Operating system version
windows 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working M7
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants