From: Steve K. <st...@st...> - 2003-11-24 16:01:12
|
Oops. The variable declaration needed to be at the beginning of the block (function). Apparently gcc let us be lazy here. I moved it for you, although it's my understanding that you'll have other problems in VC based on others' experiences. -SteveK Steven M. Sokol wrote: >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 > > > > > >------------------------------------------------------- >This SF.net email is sponsored by: SF.net Giveback Program. >Does SourceForge.net help you be more productive? Does it >help you create better code? SHARE THE LOVE, and help us help >YOU! Click Here: http://sourceforge.net/donate/ >_______________________________________________ >Iaxclient-devel mailing list >Iax...@li... >https://lists.sourceforge.net/lists/listinfo/iaxclient-devel > > > |