Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Libraries: Add include guard for SDRAM#833

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
facchinm merged 2 commits intoarduino:mainfromtokiedokie:SDRAM-include-guard
Jan 26, 2024
Merged

Libraries: Add include guard for SDRAM#833

facchinm merged 2 commits intoarduino:mainfromtokiedokie:SDRAM-include-guard
Jan 26, 2024

Conversation

@tokiedokie
Copy link
Contributor

IncludeSDRAM.h twice, I get the following error

/home/tokiedokie/.arduino15/packages/arduino/hardware/mbed_portenta/4.0.2/libraries/Portenta_SDRAM/src/SDRAM.h:10:7: error: redefinition of'class SDRAMClass'classSDRAMClass {       ^~~~~~~~~~In file included from /home/tokiedokie/.var/app/cc.arduino.IDE2/cache/.arduinoIDE-unsaved2024026-51-1ynz9ib.fpy2/sketch_jan26a/sketch_jan26a.ino:1:0:/home/tokiedokie/.arduino15/packages/arduino/hardware/mbed_portenta/4.0.2/libraries/Portenta_SDRAM/src/SDRAM.h:10:7: note: previous definition of'class SDRAMClass'classSDRAMClass {       ^~~~~~~~~~

Adding an include guard can solve this problem.

fix:#808

@CLAassistant
Copy link

CLAassistant commentedJan 26, 2024
edited
Loading

CLA assistant check
All committers have signed the CLA.

@tokiedokietokiedokie changed the titleAdd include guard for SDRAMLibraries: Add include guard for SDRAMJan 26, 2024
@facchinmfacchinm merged commit68fbece intoarduino:mainJan 26, 2024
@tokiedokietokiedokie deleted the SDRAM-include-guard branchJanuary 29, 2024 01:47
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

sdram.h gets duplicate class SDRAMClass if included twice

3 participants

@tokiedokie@CLAassistant@facchinm

[8]ページ先頭

©2009-2025 Movatter.jp