From: Michael V. D. <mv...@va...> - 2003-11-24 16:17:12
|
On Mon, 24 Nov 2003 11:01:08 -0500, Steve Kann <st...@st...> wrote: > >Oops. > >The variable declaration needed to be at the beginning of the block=20 >(function). Apparently gcc let us be lazy here. Sorry about that. I thought I had read somewhere that that was one of = the advantages of c++: you can declare a variable anywhere. I'll stop doing that. I think I'll have to go through iaxComm and do a = little cleanup as well, because I've probably been doing that left and right. > >I moved it for you, although it's my understanding that you'll have=20 >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 =3D strstr(num, "/"); >> >> if(ext) { >> strncpy(calls[callNo].remote_name, num, IAXC_EVENT_BUFSIZ);=20 >> 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 >> >> =20 >> > > > >------------------------------------------------------- >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 |