www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Linux dll -> Windows dll

reply "Mineko" <uminekorox gmail.com> writes:
Alright.. I've been having issues with getting windows DLL's to 
work with DMD, as in I can't make them and can't even compile 
without a bunch of errors.

So, I need help on that, as the dll part of the site ain't 
helping.

Also, any idea on how to convert some of the dll stuff on 
https://github.com/MinekoRox/Breaker-Engine/blob/master/src/br
aker/utility/core.d 
to be windows compatible, I was having weird issues with that 
also.
Jan 24 2014
next sibling parent "evilrat" <evilrat666 gmail.com> writes:
On Saturday, 25 January 2014 at 03:13:33 UTC, Mineko wrote:
 Alright.. I've been having issues with getting windows DLL's to 
 work with DMD, as in I can't make them and can't even compile 
 without a bunch of errors.

 So, I need help on that, as the dll part of the site ain't 
 helping.

 Also, any idea on how to convert some of the dll stuff on 
 https://github.com/MinekoRox/Breaker-Engine/blob/master/src/br
aker/utility/core.d 
 to be windows compatible, I was having weird issues with that 
 also.
https://github.com/MinekoRox/Breaker-Engine/blob/master/src/breaker/utility/core.d#L158 you are about this? it is just "dmd -shared -ofmydll.dll files.d", the problem is that you may have to add DllMain. if this doesn't works for you then put a error or describe what exactly doesn't work.
Jan 24 2014
prev sibling parent reply Benjamin Thaut <code benjamin-thaut.de> writes:
Am 25.01.2014 04:13, schrieb Mineko:
 Alright.. I've been having issues with getting windows DLL's to work
 with DMD, as in I can't make them and can't even compile without a bunch
 of errors.

 So, I need help on that, as the dll part of the site ain't helping.

 Also, any idea on how to convert some of the dll stuff on
 https://github.com/MinekoRox/Breaker-Engine/blob/master/src/breaker/utility/core.d
 to be windows compatible, I was having weird issues with that also.
Windows Dlls are fundamentally broken. The only thing that works at the moment are DLLs with a C-Interface (written in D). DLL support on Windows is nowhere near the shared library support on linux. I tried pushing for a fix, but its currently not a priority. See http://wiki.dlang.org/DIP45 Kind Regards Benjamin Thaut
Jan 25 2014
parent "Mineko" <uminekorox gmail.com> writes:
Ok thank both of you, looks like I really will have to wait on 
Windows DLL's.
Jan 25 2014