sd card library

I am using GR-Lychee and i try to write sensor data to microSD Card using lychee. but i am not able to do so.

 

following code itself is giving me error

 

In file included from i:\downloads\ide4gr-1.03-windows\ide4gr-1.03-windows\ide4gr-1.03\hardware\tools\gcc-arm\arm-none-eabi\include\sys\fcntl.h:4:0,
from hardware/arduino/rza1lu/cores/mbed-os/platform/mbed_retarget.h:43,
from hardware/arduino/rza1lu/cores/mbed-os/platform/platform.h:27,
from hardware/arduino/rza1lu/cores/mbed-os/features/filesystem/mbed_filesystem.h:23,
from hardware/arduino/rza1lu/cores/mbed-os/mbed.h:51,
from hardware/arduino/rza1lu/cores/mbed-gr-libs/components/esp32-driver/ESP32/ATParser_os/BufferedSerial/BufferedSerial.h:27,
from hardware/arduino/rza1lu/cores/arduino/cores/HardwareSerial.h:29,
from hardware/arduino/rza1lu/cores/arduino/cores/Arduino.h:322,
from sdlychee.ino:1:
C:\Users\Aj\Documents\Arduino\libraries\SD\src/utility/SdFat.h:55:15: error: expected unqualified-id before numeric constant
uint8_t const O_RDONLY = O_READ;
^
C:\Users\Aj\Documents\Arduino\libraries\SD\src/utility/SdFat.h:59:15: error: expected unqualified-id before numeric constant
uint8_t const O_WRONLY = O_WRITE;
^
C:\Users\Aj\Documents\Arduino\libraries\SD\src/utility/SdFat.h:61:15: error: expected unqualified-id before numeric constant
uint8_t const O_RDWR = (O_READ | O_WRITE);
^
C:\Users\Aj\Documents\Arduino\libraries\SD\src/utility/SdFat.h:63:15: error: expected unqualified-id before numeric constant
uint8_t const O_ACCMODE = (O_READ | O_WRITE);
^
C:\Users\Aj\Documents\Arduino\libraries\SD\src/utility/SdFat.h:63:15: error: expected ')' before numeric constant
C:\Users\Aj\Documents\Arduino\libraries\SD\src/utility/SdFat.h:65:15: error: expected unqualified-id before numeric constant
uint8_t const O_APPEND = 0X04;
^
C:\Users\Aj\Documents\Arduino\libraries\SD\src/utility/SdFat.h:67:15: error: expected unqualified-id before numeric constant
uint8_t const O_SYNC = 0X08;
^
C:\Users\Aj\Documents\Arduino\libraries\SD\src/utility/SdFat.h:69:15: error: expected unqualified-id before numeric constant
uint8_t const O_CREAT = 0X10;
^
C:\Users\Aj\Documents\Arduino\libraries\SD\src/utility/SdFat.h:71:15: error: expected unqualified-id before numeric constant
uint8_t const O_EXCL = 0X20;
^
C:\Users\Aj\Documents\Arduino\libraries\SD\src/utility/SdFat.h:73:15: error: expected unqualified-id before numeric constant
uint8_t const O_TRUNC = 0X40;
^
In file included from C:\Users\Aj\Documents\Arduino\libraries\SD\src/SD.h:20:0,
from sdlychee.ino:3:
C:\Users\Aj\Documents\Arduino\libraries\SD\src/utility/SdFat.h:374:64: warning: large integer implicitly truncated to unsigned type [-Woverflow]
static uint8_t const F_OFLAG = (O_ACCMODE | O_APPEND | O_SYNC);
^