Dynamic library loading gives error about importing a module

cal callumenator at gmail.com
Wed Feb 19 15:29:41 PST 2014


On Wednesday, 19 February 2014 at 09:45:41 UTC, Tolga Cakiroglu 
wrote:
> I have written a programme and a library under Linux. When 
> programme is run, it tries to load the library. Both the 
> programme code and the library imports a module as 
> "apps.common.lib.config". Now, when I run the programme, 
> following error is seen:
>
> Fatal Error while loading 'dll/lib.so':
> 	The module 'apps.common.lib.config' is already defined in 
> './bin/app'.
> make: *** [debug] Error 139
>
>
> Why am I not allowed to import same module in to different code 
> files? Shouldn't they be separate?

Could be this?
https://d.puremagic.com/issues/show_bug.cgi?id=11543
Workaround - compile with -release


More information about the Digitalmars-d-learn mailing list