FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Is it supposed to build libs not dlls?

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
Sage Rat



Joined: 25 Mar 2009
Posts: 10

PostPosted: Tue May 26, 2009 8:13 pm    Post subject: Is it supposed to build libs not dlls? Reply with quote

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
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Wed May 27, 2009 2:03 am    Post subject: Reply with quote

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
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Wed May 27, 2009 5:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Sage Rat



Joined: 25 Mar 2009
Posts: 10

PostPosted: Wed May 27, 2009 6:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group