This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I need help


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]