0
这是我的代码片段,当试图编译它显示“转换为非标量类型请求”错误在线“tid [i] = (pthread_t)-1“,这在下面突出显示。如果有人知道这个,请帮助我。“转换为非标量类型请求”这个小代码片段中的错误
main(void)
{
unsigned int i, repeat;
unsigned int num_threads = sizeof(testfiles)/sizeof(testfiles[0]);
void *results[MAX_ARGC];
int ret;
xmlInitParser();
for (repeat = 0;repeat < 500;repeat++) {
xmlLoadCatalog(catalog);
for (i = 0; i < num_threads; i++) {
results[i] = NULL;
**tid[i] = (pthread_t) -1;** //getting error at this point
}
在此先感谢,
斯里兰卡
您似乎忘记了向我们展示tid的声明。这可能很重要。 – ikegami 2011-05-16 07:44:45
如何声明'tid'? – 2011-05-16 07:45:18
哪里定义了“tid”? – Simone 2011-05-16 07:46:22