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]

Re: Shared libstdc++ on AIX


David Edelsohn wrote:
> 	I have been able to build and run G++ applications linked against
> the shared C++ library.  The one area where one needs to be careful is if

I've been able to do that too, my main problem was the simple

#include <fstream>

using std::ofstream;

int
main (void)
{
  ofstream f("/dev/tty");

  f << int(13)  << std::endl;

  return 0;
}

does not work, just aborts.

> 	The main problems that I still experience is libstdc++ I/O does
> not work for anything but the simplest scenarios because of both weak
> symbol teamplate instantiation problems and sharing of symbols between
> shared objects and the main application.

So does that mean that the above does not work for you either?  This
is so basic, that if it's broken, then shared libraries should be
disabled on AIX until that's fixed.

Zoli


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