[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c++ dlopen plugin --> returns undefined symbol
From: |
Thomas Drillich |
Subject: |
Re: c++ dlopen plugin --> returns undefined symbol |
Date: |
Thu, 26 Jul 2007 23:57:03 +0200 |
User-agent: |
KNode/0.10.4 |
Timothy Baldwin wrote:
>> is defined in a header file and included in main-program and plugin-lib.
>
> Are you sure you haven't added a non-inline virtual function to the
> Polygon class?
nope there's only the header file for the polygon class.
>
>> But it seems that the compiler creates different symbol names each time.
>
> It shouldn't do that.
>
>> g++ -O0 -g3 -o cpp_dlopentest cpp_dlopentest.o -ldl
>
> You should pass -rdynamic when linking the main program so that the plugin
> can refer to symbols in main program.
>
I set that flag but it changes nothing ;-(...
--
mit freundlichem Gruss -- regards
Thomas