Wow, sometimes tough to find a good subject and issue description.
I am working on a dynamic binding to the mantle32.dll following
DerelictGL and DerelictCl.
Functions in the mantle dll use structs as argument types. I
would like to define those structs in a module
derelict.mantle.types ( as in DerelictGL/CL ) and import them in
module derelict.mantle.mantle. Module mantle does have the
required hooks:
import DerelictUtil;
import some_other_module_which_needs_the_struct_definitions;
// struct definitions required
class DerelictMantleLoader : SharedLibLoader { ... }
Unfortunatelly I get an optilink error telling me that the
required structs are undefined.
Putting the struct definitions back into module
derelict.mantle.mantle does work, but this is not an option as it
will lead to cross import issues later on. The structs are also
required in module some_other_module_... and that module ( which
should handle mantleExtensions ) must also be imported in module
derelict.mantle.mantle.
I tried using opaque structs in module mantle which also didn't
work.
How can I have those structs have defined in a different module
than that which is linking to the dll ?
Regards, ParticlePeter