Dynamic library loading gives error about importing a module

Tolga Cakiroglu tcak at pcak.com
Wed Feb 19 01:45:39 PST 2014


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?


More information about the Digitalmars-d-learn mailing list