Re: Problem when using optimization on aix 5.2 and gcc 4.1.1

2007-05-23 Thread CyberGuy
I had almost the same problem - including the bad cast - on AIX 5.2 and gcc 4.1.1. My application uses pthreads. My application packags up the libraries it needs to execute - and I was using /usr/local/lib/libstdc++.a when I really wanted /usr/local/lib/pthread/libstdc++.a You can see the pat

Re: Problem when using optimization on aix 5.2 and gcc 4.1.1

2007-05-21 Thread Robert Dewar
Thomas Mittelstaedt wrote: Hello, We have a large app with a lot of static libraries in it (and I mean a lot, about 20) and it compiles and links successfully. If I compile it without optimiztion turned on (-O2 or some more subtle with -O and others), the program also runs. With optimizatio

Re: Problem when using optimization on aix 5.2 and gcc 4.1.1

2007-05-21 Thread Joe Buck
On Mon, May 21, 2007 at 07:06:47PM +0200, Thomas Mittelstaedt wrote: > Hello, > > We have a large app with a lot of static libraries in it (and I mean a > lot, about 20) and it compiles and links successfully. If I compile it > without optimiztion turned on > (-O2 or some more subtle with -O a