From: Steven M. S. <ss...@so...> - 2003-11-23 15:37:28
|
Hi, I am trying to compile the library in VC6 and seem to be having a problem. I keep getting the following errors: D:\WUTemp\iaxclient\lib\iaxclient_lib.c(646) : error C2143: syntax error : missing ';' before 'type' D:\WUTemp\iaxclient\lib\iaxclient_lib.c(648) : error C2065: 'ext' : undeclared identifier The referenced lines: char *ext = strstr(num, "/"); if(ext) { strncpy(calls[callNo].remote_name, num, IAXC_EVENT_BUFSIZ); strncpy(calls[callNo].remote, ++ext, IAXC_EVENT_BUFSIZ); } else { strncpy(calls[callNo].remote_name, num, IAXC_EVENT_BUFSIZ); strncpy(calls[callNo].remote, "" , IAXC_EVENT_BUFSIZ); } Any body know what I am doing wrong? Thanks, Steve |