This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/17569] error: incompatible types in assignment
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Sep 2004 13:59:02 -0000
- Subject: [Bug c/17569] error: incompatible types in assignment
- References: <20040920135338.17569.kminola@eng.umd.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-20 13:58 -------
the error is correct, you are assigning a pointer to a struct.
Instead of:
*d = &c->b;
You want:
d = &c->b;
This is a C question, next time look up this in a C book first.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17569