[ace-users] error
Albert Sanchez
ouferrat at gmail.com
Mon Jul 9 06:53:44 CDT 2007
Does anyone know the reason of this error?
-
server.cpp: In function â:
server.cpp:74: error: pointer of type â used in arithmetic
server.cpp:74: error: â is not a pointer-to-object type
server.cpp:79: warning: deleting â is undefined
make: *** [server] Error 1
-
The code is (lines 73-79):
-
for (int j=0; j<(int)vec->iov_len; j++) {
printf("%c",*(vec->iov_base[j]));
}
printf("\n");
//IMPORTANT!!!!!!!!
delete [] vec->iov_base;
-
where iovec is defined globally:
iovec * vec;
Thanks!
Albert
More information about the Ace-users
mailing list