Any struct that has a member that has a constructor, must itself have a
constructor. std::string has a constructor. Therefore, stuff must have a
constructor.

Thanks for the clarification, I found this issue while trying to
rebuild a code::blocks nightly with dmc and so I went to plan B and
attempted to use mingw/gcc for now.
I have revisited the above and have added a constructor for the stuff
struct, but I still get the same errors, the code now reads ...
struct stuff
{
string a;
string b;
stuff(string c, string d);
};
stuff::stuff(string c, string d)
{
a=c;
b=d;
};
void main (void)
{
stuff things[]=
{
{"john", "bill"},
{"2", "one"},
{"3", "CD"}
};
for (int i=0; i<3;i++)
{
printf("item %d %s\n", i, things[i].b);
}
}
_____
Craig Bowlas craig bowlas.demon.co.uk

constructor. std::string has a constructor. Therefore, stuff must have a
constructor.

Thanks for the clarification, I found this issue while trying to
rebuild a code::blocks nightly with dmc and so I went to plan B and
attempted to use mingw/gcc for now.
I have revisited the above and have added a constructor for the stuff
struct, but I still get the same errors, the code now reads ...
struct stuff
{
string a;
string b;
stuff(string c, string d);
};
stuff::stuff(string c, string d)
{
a=c;
b=d;
};
void main (void)
{
stuff things[]=
{
{"john", "bill"},

constructor. std::string has a constructor. Therefore, stuff must have a
constructor.

Thanks for the clarification, I found this issue while trying to
rebuild a code::blocks nightly with dmc and so I went to plan B and
attempted to use mingw/gcc for now.
I have revisited the above and have added a constructor for the stuff
struct, but I still get the same errors, the code now reads ...
struct stuff
{
string a;
string b;
stuff(string c, string d);
};
stuff::stuff(string c, string d)
{
a=c;
b=d;
};
void main (void)
{
stuff things[]=
{
{"john", "bill"},