Re: first program with pointers to structures and realloc....
- From: Ben Pfaff <blp@xxxxxxxxxxxxxxx>
- Date: Sun, 30 Apr 2006 09:35:11 -0700
Chris Torek <nospam@xxxxxxxxx> writes:
In article <f2vdi3-0op.ln1@xxxxxxxxxxx>
Martin Joergensen <unoder.spam@xxxxxxxxxxxx> wrote:
c:\documents and settings\dell\Desktop\test\main.c(41) : warning
C4133: 'function' : incompatible types - from 'tablevalues *' to
'tablevalues *'
This particular complaint is just plain wrong, however. One of
the types is indeed "tablevalues *", but the other is "struct
tablevalues *". The difference is that the second one has the
keyword "struct" in front of it, announcing to the world (and the
human programmer) that this is in fact a type-name. The first
looks like an ordinary variable name; but if it were, it would be
a syntax error, so it must be an identifier defined via a type-alias.
This makes me wonder whether a C++ compiler is being used. I
wouldn't expect a C compiler to confuse typedefs and structs in
its error messages.
(I didn't read the rest of the thread, so I don't know if there's
something else here that rules out that possibility.)
--
"Given that computing power increases exponentially with time,
algorithms with exponential or better O-notations
are actually linear with a large constant."
--Mike Lee
.
- References:
- first program with pointers to structures and realloc....
- From: Martin Joergensen
- Re: first program with pointers to structures and realloc....
- From: Chris Torek
- first program with pointers to structures and realloc....
- Prev by Date: Re: Question about "enums"
- Next by Date: Re: Question about "enums"
- Previous by thread: Re: first program with pointers to structures and realloc....
- Next by thread: Re: first program with pointers to structures and realloc....
- Index(es):
Relevant Pages
|