× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.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 <Jevgeni.Astanovski@xxxxxxxxxxxxx>
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 <Jevgeni.Astanovski@xxxxxxxxxxxxx>
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.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.