Re: Static link of glfw3 library fails for me

2020-07-27 Thread John Burton via Digitalmars-d-learn
On Monday, 27 July 2020 at 08:53:25 UTC, Mike Parker wrote: On Monday, 27 July 2020 at 07:30:42 UTC, John Burton wrote: For reference I got this to work by doing the following :- 1) Installed visual studio build tools. I could not get this to work at all with the linker etc that comes with

Re: Static link of glfw3 library fails for me

2020-07-27 Thread Mike Parker via Digitalmars-d-learn
On Monday, 27 July 2020 at 07:30:42 UTC, John Burton wrote: For reference I got this to work by doing the following :- 1) Installed visual studio build tools. I could not get this to work at all with the linker etc that comes with ldc2. 2) Copied the glfw3.lib vs2019 version file into my

Re: Static link of glfw3 library fails for me

2020-07-27 Thread John Burton via Digitalmars-d-learn
On Sunday, 26 July 2020 at 12:24:06 UTC, John Burton wrote: On Sunday, 26 July 2020 at 10:41:27 UTC, Mike Parker wrote: On Sunday, 26 July 2020 at 08:28:29 UTC, John Burton wrote: And I get the following errors from the link :- lld-link: error: undefined symbol: __GSHandlerCheck lld-link:

Re: Static link of glfw3 library fails for me

2020-07-26 Thread John Burton via Digitalmars-d-learn
On Sunday, 26 July 2020 at 10:41:27 UTC, Mike Parker wrote: On Sunday, 26 July 2020 at 08:28:29 UTC, John Burton wrote: And I get the following errors from the link :- lld-link: error: undefined symbol: __GSHandlerCheck lld-link: error: undefined symbol: __security_check_cookie lld-link:

Re: Static link of glfw3 library fails for me

2020-07-26 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 26 July 2020 at 08:28:29 UTC, John Burton wrote: versions "BindGLFW_Static" libs "glfw3" lflags "-L..\\work\\3rdparty\\lib" And by the way, you're going to need to link more libs than glfw3 for a static link. You'll need all of its dependencies, as well (OpenGL32.lib,

Re: Static link of glfw3 library fails for me

2020-07-26 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 26 July 2020 at 08:28:29 UTC, John Burton wrote: And I get the following errors from the link :- lld-link: error: undefined symbol: __GSHandlerCheck lld-link: error: undefined symbol: __security_check_cookie lld-link: error: undefined symbol: __security_cookie I believe that's

Static link of glfw3 library fails for me

2020-07-26 Thread John Burton via Digitalmars-d-learn
I'm trying to replicate a program I make in C++ using D. I am using the ldc2 compiler and want to *static* link in the glfw library. Following the docs I have an dub.sdl file that looks like the one below. The library I'm linking with is the vs2019 one from the GLFW zip file from their