This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g++ in AIX 4.3
- To: "Vasudeva Upadhya" <kvu at cfdrc dot com>
- Subject: Re: g++ in AIX 4.3
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: 10 Aug 2000 18:44:16 -0700
- CC: gcc-bugs at gcc dot gnu dot org
- References: <003801c0031a$0fd452e0$d5574dc0@cfdrc.com>
"Vasudeva Upadhya" <kvu@cfdrc.com> writes:
> On AIX 4.3 with gcc 2.95.2
You mean 4.3.0? There are big differences between the 4.3.x versions.
> I get the following:
>
> ld: 0711-302 ERROR: Object imageviewer.o, csect <_imageviewer.rw_cpp>
> The csect is part of the .text section, and relocation entries
> from the csect have been written to the .loader section.
>
> this was mentioned in one of the maling thread.
>
> AIX/g++ const structs containing function addresses fail
> Has it been fixed in the current snapshot of gcc.
Without a more specific bug report, I can't really help you much,
other than to say that there is only one known problem with g++ on AIX
4.3.3, which is related to static templated data, which this isn't.
So it may very well be fixed.
The following short program compiles and links OK under a relatively
recent g++:
----------
extern int foo(int);
struct foos { int (*foop)(int); };
const struct foos food = { &foo };
int main()
{ return 0; }
----------
--
- Geoffrey Keating <geoffk@cygnus.com>