-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Hi!
Thanks for your work on this library!
I've been trying to use IniFile compining against SdFat instead the defaukt SD library. I've used the examples included in IniFile witout success.
- Example "IniBrowseExample", without any modifications (compiling using SD.h library) is successful:
`#include <SD.h>
#include <SPI.h>
#include <IPAddress.h>
#include <IniFile.h>
// The select pin used for the SD card
[...]`
- Example "IniBrowseExample" compiling using SdFat is not successful:
`#define PREFER_SDFAT_LIBRARY 1
#include <SdFat.h>
#include <SPI.h>
#include <IPAddress.h>
#include <IniFile.h>
// The select pin used for the SD card
[...]`
Error:
tmp/arduino/sketches/BB2A6256ECD89697A9217989C990A171/sketch/IniBrowseExample.ino.cpp.o: In function IniFile::open()':
/home/user/Arduino/libraries/IniFile/src/IniFile.h:161: undefined reference to SD' /tmp/arduino/sketches/BB2A6256ECD89697A9217989C990A171/sketch/IniBrowseExample.ino.cpp.o: In function setup':
/tmp/.arduinoIDE-unsaved202339-2452-1rlkvoh.nh7h/IniBrowseExample/IniBrowseExample.ino:72: undefined reference to IniFile::IniFile(char const*, int, bool)' /tmp/.arduinoIDE-unsaved202339-2452-1rlkvoh.nh7h/IniBrowseExample/IniBrowseExample.ino:126: undefined reference to SD'
/tmp/.arduinoIDE-unsaved202339-2452-1rlkvoh.nh7h/IniBrowseExample/IniBrowseExample.ino:126: undefined reference to `SD'
collect2: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1`
- Example "IniBrowseExample" compiling using SdFat with some extra options is neither successful:
`#define PREFER_SDFAT_LIBRARY 1
#include <SdFat.h>
SdFat SD;
#include <SPI.h>
#include <IPAddress.h>
#include <IniFile.h>
// The select pin used for the SD card
[...]`
Error:
/tmp/arduino/sketches/BB2A6256ECD89697A9217989C990A171/sketch/IniBrowseExample.ino.cpp.o: In function setup':
/tmp/.arduinoIDE-unsaved202339-2452-1rlkvoh.nh7h/IniBrowseExample/IniBrowseExample.ino:73: undefined reference to `IniFile::IniFile(char const*, int, bool)'
collect2: error: ld returned 1 exit status
exit status 1
Compilation error: exit status 1`
Is there any way to solve this? If I can help any way please let me know.
Thanks!