cannot pass objects of non-trivially-copyable type 'struct std::string' through '...'
for the code below:
##############################
#define MAX 64
string GPIOarray[] = {"GND", "POS"};
char setValue[4], GPIOString[4], GPIOValue[15], GPIODirection[MAX], GPIOMux[MAX];
int main(){
for (int n=0 ; n<1 ; n++ )
{
sprintf(GPIOMux, "/sys/kernel/debug/omap_mux/", GPIOarray[n]); // ERROR HERE
.
.
.
}
##################################
I am trying to get a final strings of: