This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: I need help
- From: Tim Prince <tprince at computer dot org>
- To: "Hermione Granger" <herm_oh_ninny at hotmail dot com>, gcc at gnu dot org
- Date: Sun, 28 Jul 2002 21:26:35 -0700
- Subject: Re: I need help
- References: <F152S5dU5GDEIdixtKp0001d826@hotmail.com>
- Reply-to: tprince at computer dot org
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