D
Derek Baker
I have this code which compiles on the MINGW version of GCC 3.4.2:
vector<string> Labels ;
va_list va_Labels;
va_start(va_Labels, Number);
for(int i= 0; i< Number; ++i)
{
Labels.push_back(va_arg(va_Labels, string));
}
va_end(va_Labels);
It compiles, but cause a segmentation fault when run. I have similar
code that extracts ints and it runs fine.
vector<string> Labels ;
va_list va_Labels;
va_start(va_Labels, Number);
for(int i= 0; i< Number; ++i)
{
Labels.push_back(va_arg(va_Labels, string));
}
va_end(va_Labels);
It compiles, but cause a segmentation fault when run. I have similar
code that extracts ints and it runs fine.