Thread overview
[Issue 19051] Undefined functions Set/GetWindowLongPtr in mingw libs
Jul 05, 2018
Rainer Schuetze
Jul 05, 2018
Seb
Jul 06, 2018
Rainer Schuetze
Apr 13, 2019
Dlang Bot
Apr 14, 2019
Dlang Bot
July 03, 2018
https://issues.dlang.org/show_bug.cgi?id=19051

--- Comment #1 from chrismohrfeld@comcast.net ---
To note: I'm not using VS or MS Build tools, just the DMD zip file from the download site

--
July 03, 2018
https://issues.dlang.org/show_bug.cgi?id=19051

desisma@heidel.beer changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |desisma@heidel.beer

--- Comment #2 from desisma@heidel.beer ---
I can repoduce this issue.

----

C:\D>dmd -m64 R:\test.d -L="C:\D\dmd2\windows\lib64\mingw\user32.lib"

C:\D\dmd2\windows\bin\lld-link.exe: warning: app.obj: undefined symbol:
SetWindowLongPtrA
error: link failed
Error: linker exited with status 1

----

Regards,
Elias

--
July 03, 2018
https://issues.dlang.org/show_bug.cgi?id=19051

--- Comment #3 from desisma@heidel.beer ---
(In reply to desisma from comment #2)
> I can repoduce this issue.
> 
> ----
> 
> C:\D>dmd -m64 R:\test.d -L="C:\D\dmd2\windows\lib64\mingw\user32.lib"
> 
> C:\D\dmd2\windows\bin\lld-link.exe: warning: app.obj: undefined symbol:
> SetWindowLongPtrA
> error: link failed
> Error: linker exited with status 1
> 
> ----
> 
> Regards,
> Elias

In order to prevent confusion, I used a different test app than the one posted above. That's why the error message differs :)

--
July 05, 2018
https://issues.dlang.org/show_bug.cgi?id=19051

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |r.sagitario@gmx.de

--- Comment #4 from Rainer Schuetze <r.sagitario@gmx.de> ---
https://github.com/dlang/installer/pull/332

Please try the libraries from:

https://ci.appveyor.com/project/4wil/installer/build/1.0.79/artifacts

--
July 05, 2018
https://issues.dlang.org/show_bug.cgi?id=19051

Seb <greeenify@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greeenify@gmail.com

--
July 05, 2018
https://issues.dlang.org/show_bug.cgi?id=19051

--- Comment #5 from chrismohrfeld@comcast.net ---
Seems to have resolved my issue (originally found this when trying to build a vibe.d project), thanks! Out of curiosity, would there be plans to integrate the mingw-w64 libraries?

--
July 06, 2018
https://issues.dlang.org/show_bug.cgi?id=19051

--- Comment #6 from Rainer Schuetze <r.sagitario@gmx.de> ---
The definitions of core.sys.windows don't go beyond Windows Vista, and I suspect these are mostly covered by the current libraries.

If you want to go further, I recommend using the Windows SDK directly. Visual D has a conversion tool to convert a bunch of headers to D: https://github.com/dlang/visuald/blob/master/c2d/idl2d.d

--
April 13, 2019
https://issues.dlang.org/show_bug.cgi?id=19051

--- Comment #7 from Dlang Bot <dlang-bot@dlang.rocks> ---
@wilzbach created dlang/installer pull request #373 "Build mingw on Azure" fixing this issue:

- fix Issue 19051 - Undefined functions Set/GetWindowLongPtr in mingw libs

- Merge pull request #332 from rainers/add_SetWindowLongPtr

  Issue 19051 - Undefined functions Set/GetWindowLongPtr in mingw libs

https://github.com/dlang/installer/pull/373

--
April 14, 2019
https://issues.dlang.org/show_bug.cgi?id=19051

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/installer pull request #373 "Build mingw on Azure" was merged into master:

- 046bf27644b838e7d6a20656ed92a66f6304dc54 by Rainer Schuetze:
  fix Issue 19051 - Undefined functions Set/GetWindowLongPtr in mingw libs

https://github.com/dlang/installer/pull/373

--