Thanks Ulrich. That is what is going on

Sergey, where this flags go in the .pro file, in* QMAKE_CXXFLAGS* or *LIBS*
?

Thanks a bunch

Nick

On Sun, Mar 1, 2015 at 12:49 PM, Sergey Kurdakov <sergey.fo...@gmail.com>
wrote:

> Hi
>
> To link   against shared libgcc, add -shared-libgcc
> to link  against shared libstdc++ add -lstdc++_s
>
> Regards
> Sergey
>
>
> On Sun, Mar 1, 2015 at 1:58 PM, Ulrich Hertlein <u.hertl...@sandbox.de>
> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> Hi Nick,
>>
>> On 28/02/2015 14:46, Trajce Nikolov NICK wrote:
>> > I am facing a problem with memory clean-up when mixing the place of
>> allocation across
>> > dlls and the executable. Let say I have main executable that loads dlls
>> (plugins) in
>> > which I allocate memory using referenced pointers. On exit, those
>> pointers that were
>> > allocated in one of the dlls got stucked in ... If I clean these
>> pointers from the
>> > originated dll, it works ok, otherwise not.
>> >
>> > Any clue?
>>
>> You end up with different instances of the runtime library, each with its
>> own heap
>> management.  You allocate the object on the heap of one DLL and free it
>> onto the heap of
>> the other -> bang.
>>
>> Sorry, I don't know what the corresponding flag might be on mingw.
>>
>> Cheers,
>> /ulrich
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1
>>
>> iQEcBAEBCAAGBQJU8vDIAAoJEP8WARS52jMYq6gH/Axcl3evhaF8tdjUePeHb707
>> Et4rociiWaZdVu2Cq3x3TWr6MvOqqdcJMka1h7z0Nyy43FI0HI2s63NdPiXH5LcS
>> BYC8j1w8BTzOisOUYyQJwGaqt4856ne2tHAjAU47Qp5bAsvbx7ZTZa0VU2ncLmJt
>> A5P2TOtDRGBjtxoQc4Kmx33AWHFzX3iT+yaN5v6EUTVO3MReQTqWCXdJWr+/GC/0
>> DMWmO/ZhGLis2NONoDGeNtZtgABPhg91Z+tZt0jYyzEkJ9eC4WN+F7x++0NPfRaf
>> BBAzFN8Ch9YA4mcMjQF2TkqEdMcBHnmUb49ObUbU6fHd9Ce946dwfrB1gtlne4M=
>> =Q7H0
>> -----END PGP SIGNATURE-----
>> _______________________________________________
>> osg-users mailing list
>> osg-users@lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
trajce nikolov nick
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to