Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main.cpp:3:7: error: '__flash' does not name a type
- const __flash char string[] = "string in flash";
- ^~~~~~~
- main.cpp: In function 'int main()':
- main.cpp:6:12: error: 'string' was not declared in this scope
- return string[2];
- ^~~~~~
- main.cpp:6:12: note: suggested alternative: 'struct'
- return string[2];
- ^~~~~~
- struct
- zsh: exit 1 avr-g++ -mmcu=atmega32 main.cpp
- #include <avr/io.h>
- const __flash char string[] = "string in flash";
- int main(void) {
- return string[2];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement