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