Add multiple modules to a DLL

Don Clugston dac at nospam.com.au
Wed Jan 9 23:13:16 PST 2008


peter wrote:
> Greetings,
> 
> I'm stuck here again. I compiled successfully the dll sample (d calling d code) in the D web site.
> 
> The issue here is that i want to add multiples modules to the dll file.
> I'm able to compile and create the dll but test.d is unable to find the other modules, it only recognizes contents from mydll.d.
> 
> Am i doing something wrong? Please help.
> 
> Thanks in advace.

* You need to pass all the filenames on the command line,
eg
dmd mydll.d test.d
*You can also use bud/build instead. You *cannot* use rebuild/dsss to build a dll.
Bud works very well for me with making DLLs. Although I've never tried to use a 
D DLL from D, only from C++.


More information about the Digitalmars-d-learn mailing list