C coding and Syntax errors
frank kolmann <[email protected]>
| Newsgroups | gmane.comp.lang.as400.c |
|---|---|
| Message-ID | <CAB-SQvjh1TH56=08N_DS-paRSjdyrWTgme=CqkqaUxMLVuQw2w@mail.gmail.com> |
Hi Jevgeni Thanks for the info. I actually got hold of Paul Contes book, thanks Marc. Common Sense C - Advice & Warnings for C and C++ Programmers (Publisher: 29th Street Press) I found it really helpful and although written in 1992 it has already answered an number of issues I have been having. (also Pauls book has a solution for the == problem) I appreciate your offer to help , in my original email I did show the code I was struggling with. Thanks to everyone else who replied. I am back on track. Regards Frank >date: Mon, 17 Feb 2014 16:03:06 +0000 >from: Jevgeni Astanovski <[email protected]> >subject: Re: [C400-L] C coding and Syntax errors > >Frank, >if your question was simply "How do C programmers cope with compiler error messages?" >Then an answer will be "Mostly well". > >From my experience there is only one class of errors that sometimes cause trouble. >That is missing parenthesis - either one of these "()" or "{}". >In this case you normally get an error message pointing to a row in you programm >well below the place where actual error was. >This is obvious for all "free-form" languages where a statement can take more >than 1 row and there can be more than one statement in one row. >Such syntax errors did not happen in Fortran or PL/I in the time of punched cards. > >Then, of course that are troubles that do not cause syntax errors. >That is mostly statements like >if (a = b) >..... >Sometimes I have to call someone else to look at my code, >because I just do not see that there is only one "equal" >sign instead of two. And as a result you get an unexplainable program behaviour. > >If you have some particular question - you cannot understand what this or that error message mean in this particular situation - I personally will be happy to help you - as much as I can. >But as far as you place a general question, you get a discussion instead of an answer... > >Jevgeni > > >date: Mon, 17 Feb 2014 16:05:22 +0000 >from: Jevgeni Astanovski <[email protected]> >subject: Re: [C400-L] C++ Compiler on IBM i > >Looked at the licensed programs, yes, they are different options: > >Licensed Product >Program Option Description >5770WDS 51 ILE C >5770WDS 52 ILE C++ > >That is they can be installed separately.> > >GO LICPGM, option 10. -- This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/c400-l or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at http://archive.midrange.com/c400-l.