From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14663 invoked by alias); 29 Jul 2002 04:27:37 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 14656 invoked from network); 29 Jul 2002 04:27:36 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 29 Jul 2002 04:27:36 -0000 Received: from inet1.yelmtel.com ([65.161.32.36] helo=inet1.ywave.com) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17Z287-0002a3-00 for ; Mon, 29 Jul 2002 00:27:35 -0400 Received: from there (dsl5139.ywave.com [208.10.179.139]) by inet1.ywave.com (Postfix) with SMTP id AB61A2D049; Sun, 28 Jul 2002 21:26:35 -0700 (PDT) Content-Type: text/plain; charset="iso-8859-1" From: Tim Prince Reply-To: tprince@computer.org To: "Hermione Granger" , gcc@gnu.org Subject: Re: I need help Date: Mon, 29 Jul 2002 07:57:00 -0000 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020729042635.AB61A2D049@inet1.ywave.com> X-SW-Source: 2002-07/txt/msg01359.txt.bz2 On Sunday 28 July 2002 19:30, Hermione Granger wrote: > Dear GNU/GCC, > > My C++ source file is attached. The error I am getting is: > > [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]$ > I get more details: tim@linux:/windows/E/src/net>gcc 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]' test.cpp:7: ISO C++ forbids assignment of arrays Could you consider that line 5 resembles line 7? If you wish to assign arrays without diving into classes, you need g95. -- Tim Prince