public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Nathan Sidwell <nathan@codesourcery.com>
To: Hermione Granger <herm_oh_ninny@hotmail.com>
Cc: gcc@gnu.org
Subject: Re: I need help
Date: Mon, 29 Jul 2002 08:02:00 -0000	[thread overview]
Message-ID: <3D44C479.554A82EE@codesourcery.com> (raw)
In-Reply-To: <F152S5dU5GDEIdixtKp0001d826@hotmail.com>

Hermione Granger wrote:

> [xxxxx@xxxxxxxxx xxxxx]$ gcc -c test.cpp
> test.cpp: In function `void set_num (long unsigned int *)':
> test.cpp:5: incompatible types in assignment of `long unsigned int *'
> to `long unsigned int[1000]'
> [xxxxx@xxxxxxxxx xxxxx]$
> 
> Please tell me what I am doing wrong.
You are trying to copy a whole book of spells with one stroke of
the assignment wand. As Professor Dumbledore would have already
told you in advanced incantations, that only works when you are
copying into an alterable almanac from a book written in, say,
the language of Tran (particularly the dialect close to the fort).
It is much simpler to copy one page at a time.

Indeed, the newer gcc's have been updated with an explanation
daemon, which tells you,
<geekspeak>
test.cpp:7: ISO C++ forbids assignment of arrays
</geekspeak>

nathan
-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org

  parent reply	other threads:[~2002-07-29  4:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-29  6:53 Hermione Granger
2002-07-29  7:57 ` Tim Prince
2002-07-29  8:02 ` Nathan Sidwell [this message]
2004-05-25 11:47 Andre Pena
2004-05-25 12:26 ` mike
2009-12-04 18:02 i " jose manuel Herrera Magana
2009-12-04 18:29 ` Justin P. Mattock

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D44C479.554A82EE@codesourcery.com \
    --to=nathan@codesourcery.com \
    --cc=gcc@gnu.org \
    --cc=herm_oh_ninny@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).