View previous topic :: View next topic |
Author |
Message |
Sage Rat
Joined: 25 Mar 2009 Posts: 10
|
Posted: Tue May 26, 2009 8:13 pm Post subject: Is it supposed to build libs not dlls? |
|
|
From the documentation, source, and an old version of Derelict I had, I believe that Derelict is meant, after all compiled, to consist of a bunch of DLLs and maybe one or several libs that allow me to load them.
Trying both "dmd -run buildme.d" and "dsss build", it seems to only output lib files in the lib folder, and connecting those to my application, I just get a null pointer error or something when I run.
Help? |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Wed May 27, 2009 2:03 am Post subject: |
|
|
The derelict libraries work like bindings and a loader for other dynamic libraries, like OpenGL and SDL. When building derelict it will only output static libraries. |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Wed May 27, 2009 5:20 am Post subject: |
|
|
The DLLs you need are from C libraries. So if you want to use, for example, SDL, then you need to go to libsdl.org and download the SDL DLLs from there. Compiling and linking with DerelictUtil and DerelictSDL will then allow you to use that DLL from D. Generally, the DLLs should be placed in the same directory as your executable. Unless it's a system DLL, like OpenGL. _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
|
Sage Rat
Joined: 25 Mar 2009 Posts: 10
|
Posted: Wed May 27, 2009 6:50 am Post subject: |
|
|
Ah... Thank you, I'll fish those all up then.
Possibly that should be added to the project page under Getting Started? |
|
Back to top |
|
|
|