eeprom_write_block error

Hi,
I have a mixed types string that I try to write to EEPROM on Mega.
The string builds of various types elements, and can print nicely as one csv string,
but when loading to EEPROM by eeprom_write_block it shows two errors:
expected identifier before '(' token
expected ',' or '...' before '(' token
What am I doing wrong?
Thanks.
.

#include <EEPROM.h>
#include <avr\pgmspace.h>
#include <Arduino.h>

String configData;
void saveLocalConfig()
{
configData = (String)deviceID + "," + deviceRev + "," + revDate + "," + dataArraySize + "," + mode + ","
+ tolerance + "," + externalTrigger + "," + laserEnable;

Serial.println(configData);    //This prints OK as csv string. 

void eeprom_write_block (const void *configData, void *configDataBase, (uint16_t )(strlen(configData) + 1));

//Shown errors:
//expected identifier before '(' token
//expected ',' or '...' before '(' token

Please do not cross-post. Other thread removed. Replies go here.