[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: constructors not called in dynamic object, Linux only.
From: |
James Kanze |
Subject: |
Re: constructors not called in dynamic object, Linux only. |
Date: |
Thu, 03 Feb 2005 22:17:04 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
Paul Pluzhnikov wrote:
> James Kanze <kanze@none> writes:
>>Anyway, the problem seems clear; something isn't getting
>>linked correctly into the main, so dlopen isn't finding it.
> Correct. And it has nothing to with constructors.
Which I'd have noticed immediately if I'd have checked the
return code of dlopen:-).
> The fix:
> g++ -g -fPIC -o ./test IF.o main.o -ldl -rdynamic
Thanks. That did the job.
--
James Kanze home: www.gabi-soft.fr
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 pl. Pierre Sémard, 78210 St.-Cyr-l'École, France +33 (0)1 30 23 00 34