www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - 64-bit DWT & Windows static libs

reply "Mike" <none none.com> writes:
I'm investigating what it will take to port DWT to 64-bit.  For 
Windows, it looks like I will need 64-bit versions of the static 
libs here: 
https://github.com/d-widget-toolkit/org.eclipse.swt.win32.win32
x86/tree/master/lib 
(ole32.lib, msimg32.lib, etc...)

I have several different versions of these files on my computer, 
but does anyone know what the true source of these files is.  Is 
there a re-distributable or runtime from Microsoft that has these 
files?

Thanks for the help?

Mike
Jul 22 2014
parent reply "Mike" <none none.com> writes:
On Tuesday, 22 July 2014 at 22:53:52 UTC, Mike wrote:
 I'm investigating what it will take to port DWT to 64-bit.  For 
 Windows, it looks like I will need 64-bit versions of the 
 static libs here: 
 https://github.com/d-widget-toolkit/org.eclipse.swt.win32.win32
x86/tree/master/lib 
 (ole32.lib, msimg32.lib, etc...)

 I have several different versions of these files on my 
 computer, but does anyone know what the true source of these 
 files is.  Is there a re-distributable or runtime from 
 Microsoft that has these files?

 Thanks for the help?

 Mike
Well, it looks like these files are in the Windows SDK. That leaves me wondering about another question, though: Are these static libs legally redistributable? They are listed in the SDK's redist.txt, but only if compiled with in a user binary. DMD redistributes some of them, but does Digital Mars have a unique agreement with Microsoft? Again, thanks for any help answering these questions. Mike
Jul 22 2014
next sibling parent reply Rikki Cattermole <alphaglosined gmail.com> writes:
On 23/07/2014 1:01 p.m., Mike wrote:
 On Tuesday, 22 July 2014 at 22:53:52 UTC, Mike wrote:
 I'm investigating what it will take to port DWT to 64-bit.  For
 Windows, it looks like I will need 64-bit versions of the static libs
 here:
 https://github.com/d-widget-toolkit/org.eclipse.swt.win32.win32.x86/tree/master/lib
 (ole32.lib, msimg32.lib, etc...)

 I have several different versions of these files on my computer, but
 does anyone know what the true source of these files is.  Is there a
 re-distributable or runtime from Microsoft that has these files?

 Thanks for the help?

 Mike
Well, it looks like these files are in the Windows SDK. That leaves me wondering about another question, though: Are these static libs legally redistributable? They are listed in the SDK's redist.txt, but only if compiled with in a user binary. DMD redistributes some of them, but does Digital Mars have a unique agreement with Microsoft? Again, thanks for any help answering these questions. Mike
You shouldn't need to find them. They are provided with the MSVC tool chain. So as long as DMD is set up for 64bit, it should just link.
Jul 22 2014
parent "Mike" <none none.com> writes:
On Wednesday, 23 July 2014 at 02:49:31 UTC, Rikki Cattermole 
wrote:
 You shouldn't need to find them. They are provided with the 
 MSVC tool chain. So as long as DMD is set up for 64bit, it 
 should just link.
Thanks Rikki, I'm aware of that, but my question is about the current DWT distribution. Right now, these files are distributed with DWT (https://github.com/d-widget-toolkit/org.eclipse.swt.win32.win32.x 6/tree/master/lib). The DWT build script links to these files, not the ones distributed with DMD. According to my interpretation of http://go.microsoft.com/fwlink/?LinkId=294840... <quote> Subject to the license terms for the software, the .lib files under the following directories may be distributed unmodified when built as part of your program: Program Files\Windows Kits\8.1\Lib\winv6.3\um\x86 Program Files\Windows Kits\8.1\Lib\winv6.3\um\x64 Program Files\Windows Kits\8.1\Lib\winv6.3\um\arm </quote> ... the lib files must be compiled into the user's binary. I need to reconcile if DWT is adhering to the redistribution license. Knowing how Digital Mars justifies redistribution of these file with DMD will help me reach a conclusion. Mike
Jul 22 2014
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 23/07/14 03:01, Mike wrote:

 DMD redistributes some of them, but does Digital Mars have a unique
 agreement with Microsoft?
I think they have an agreement to redistribute these libraries. Walter knows the answer to this. -- /Jacob Carlborg
Jul 22 2014