It sounds like start->data is declared as an array yet you are trying to assign a string to it with the assignment operator.
Code:
struct test
{
char data[100];
} static *start;
int main ( void )
{
char array[] = "This is a test";
start->data = array;
// Won't work, a string cannot be assigned to an array directly
return 0;
}
Code:
#include <string>
struct test
{
char data[100];
} static *start;
int main ( void )
{
char array[] = "This is a test";
strcpy ( start->data, array );
// String data is being copied correctly, this will work
return 0;
}
-Prelude