Cant figure out how to clear the errors. [Sitemap] - HeapOverflow Computer Security Community & Forums : Heap Overflow.com

PDA

View Full Version : Cant figure out how to clear the errors.


ProZac
06-10-05, 10:13
for(int i = 0; i < MAX_THREADS; i++) {
CloseHandle(hThreads[i]);
}

return 0;
}

C2143: syntax error : missing ';' before 'type'
C2143: syntax error : missing ';' before 'type'
C2143: syntax error : missing ')' before 'type'
C2143: syntax error : missing ';' before 'type'
C2065: 'i' : undeclared identifier
C2059: syntax error : ')'
C2143: syntax error : missing ';' before '{'

All in the upper line.
Anyone has some good advise how to fix this?

pure32bits
06-10-05, 21:56
Well, as the error log clearly says, 'i' is not declared...

ProZac
06-10-05, 23:05
that was not really the answer i was looking for... :)

pure32bits
07-10-05, 17:10
Paste a bigger part of the source code, and the whole error log...

class101
07-10-05, 19:53
try to declare "i" before "for" and remove "int" inside "for"..

ProZac
09-10-05, 12:39
got it to work finally thanks :)