Re: reading a structure with pointer



"Jujitsu Lizard" <jujitsu.lizard@xxxxxxxxx> writes:

"Ben Bacarisse" <ben.usenet@xxxxxxxxx> wrote:
romesh <romeshkulasekhara@xxxxxxxxx> writes:

I want to [...]
and that is where I am getting problems.

The code you posted has syntax errors. It is much better to post
real code.

You know, I agree with you.

Fine so far.

In fact, there should probably be a rule for this group

No there should not be.

that any code posted has to be a complete program that will compile
using "gcc filename.c".

Yet another missing of The Point, in several parts:

- If the OP complains that code runs but "doesn't work" (FSVO), then
posting code that has syntax errors is pointless, since we obviously
aren't being shown the code that "doesn't work" as originally
described.

- If the OP's problem is that attempting to compile gives error
messages but s/he doesn't understand them, then posting code with
errors is fine (as long as the actual text of the error messages is
also posted).

- The result of "gcc filename.c" is irrelevant here unless you get the
exact same result with (at least) "gcc -ansi -pedantic filename.c",
since by default gcc is not a C compiler.

mlp
.



Relevant Pages

  • UTF leading to problems?
    ... I hit a problem I'd like your opinions to: ... Since I updated from SuSE 9.0 to 9.1 I get new error messages in the shell ... If i e.g. try to compile the new version of StreamTuner ./configure already ... checking for gcc... ...
    (alt.os.linux.suse)
  • line numbering
    ... I just used Visual C++ to compile a C code. ... I code a bunch of error messages (mostly syntax errors). ...
    (microsoft.public.dotnet.languages.vc)
  • Re: pctel HSP56 modem compilation problem
    ... I tryed to go beyond but I got only error messages. ... > Might result from using gcc version 3.3. ... > gcc version 3.2 as you compile a kernel module and the kernel is ...
    (Fedora)
  • Re: compile problem
    ... > I don't know why it didn't compile with gcc ... posted the error messages. ...
    (comp.lang.cpp)
  • Re: Syntax checker wtf?
    ... discussion has been around the need for "better error messages". ... It's implicit with the lack of statement terminators. ... has shown some head-scratching syntax errors, ... And of course those old Lots of Irritating Silly Parentheses ...
    (comp.lang.ruby)