Re: Compiling and linking libraries

2016-11-20 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 20 November 2016 at 01:01:16 UTC, Darren wrote: Thank you for this! Great information. So dub dynamically "add" code from the dll into the source code at runtime? No. DUB doesn't have anything to do with runtime and doesn't know anything about the DLLs you use. The Derelict pack

Re: Compiling and linking libraries

2016-11-19 Thread Darren via Digitalmars-d-learn
On Wednesday, 16 November 2016 at 16:05:06 UTC, Mike Parker wrote: On Wednesday, 16 November 2016 at 14:59:40 UTC, Edwin van Leeuwen wrote: Thank you for this! Great information. So dub dynamically "add" code from the dll into the source code at runtime? Also will I ever need to learn ho

Re: Compiling and linking libraries

2016-11-16 Thread Mike Parker via Digitalmars-d-learn
On Wednesday, 16 November 2016 at 14:59:40 UTC, Edwin van Leeuwen wrote: If you are happy to use dub I would just add the GL library as a dependency to my dub.json file. Then if you call dub it will download and compile the necessary file. Example dub.json file: ``` { "name": "myWin

Re: Compiling and linking libraries

2016-11-16 Thread Edwin van Leeuwen via Digitalmars-d-learn
On Wednesday, 16 November 2016 at 14:27:41 UTC, Darren wrote: Hey all, This is a very beginner problem, but not one I know how to do on my own. Could anyone give a step-by-step guide on how to compile libraries, and then use them in my project with DUB? If you are happy to use dub I would j

Compiling and linking libraries

2016-11-16 Thread Darren via Digitalmars-d-learn
Hey all, This is a very beginner problem, but not one I know how to do on my own. Could anyone give a step-by-step guide on how to compile libraries, and then use them in my project with DUB? For example, I've been using this guide for graphics: http://www.learnopengl.com/#!Getting-started/