I am trying to write a program that fopen()s an image so I can use it later.
I've wired my SD card adapter exactly the way shown here: [![enter image description here][1]][1]
And I'm using the following code to fopen():
FILE *streamIn;
streamIn = fopen("pic.bmp", "r");
When I compile, I get the following error:
In function main:
ccA5H011.ltrans0.o:(.text.startup+0x29a): undefined reference to `fopen'
- I have the most up-to-date Arduino software.
- I am using the Arduino MEGA.
- The image "pic.bmp" is 100x100 and is not in any folder of the SD card, it is located right in it instead (If I click on the SD Card in "My Files" when it is plugged into my computer, pic.bmp is there).
fopen()in here? – Ignacio Vazquez-Abrams Jun 03 '17 at 02:18