Re: Fresh install of GCC 4.6.0, error with Boost Serialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ah, no I didn't. Do you think I should recompile & reinstall with that enabled?
Also, are you able to tell me where how the system libraries are
compiled for Snow Leopard is documented, if they are?
& thanks very much for your help,
   Doug.

On 18 April 2011 14:20, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:
> On 17 April 2011 17:20, doug livesey wrote:
>> Hi -- I've installed GCC 4.6.0 on my MacBook Pro (running Snow
>> Leopard), and have compiled a simple hello world c++ program with it.
>> Unfortunately, when I try to do something more complex using the Boost
>> Serialization library, the code compiles and links, but I get the
>> following error when I run it:
>>    run_features(2872) malloc: *** error for object 0x100502060:
>> pointer being freed was not allocated
>>    *** set a breakpoint in malloc_error_break to debug
>>
>> This occurs when I try to create an xml archive with a stringstream.
>> The code compiles fine under GCC 4.2, it's only with 4.6.0 that I get
>> this error. I reinstalled Boost with GCC 4.6.0 (by fixing symlinks to
>> cc, gcc, and g++ & using homebrew) to be sure that it wasn't something
>> there.
>> For reference, the error is caused by line 24 of this file:
>> https://gist.github.com/923262
>> I'm just learning C++ & GCC development, so I'm a bit stumped, now, as
>> to what I can do next -- could anyone advise me on how I might resolve
>> this, or where I might look for information to help me?
>
> Is your program definitely using new libstdc++.so from the GCC 4.6.0
> you installed yourself, rather than the system's default libstdc++.so?
>
> Did you build GCC 4.6.0 with --enable-fully-dynamic-string in the
> configure options?
> I believe that is necessary on Snow Leopard, because the system
> libraries are built that way.
>



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux