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

How to reference libraries?

 
Post new topic   Reply to topic     Forum Index -> Descent
View previous topic :: View next topic  
Author Message
BlackoutStout



Joined: 27 Apr 2008
Posts: 2

PostPosted: Sun Apr 27, 2008 3:57 pm    Post subject: How to reference libraries? Reply with quote

How do you reference libraries in Descent? So far I have been able to compile a simple Hello World program in Descent. I have also compiled a simple SDL program from the command line like this:

bud hello.d -IC:\dmd\src\ext\

However, in Descent I cannot get it to work. It says this when I try to compile:
main.d(4): module sdl cannot read file 'derelict\sdl\sdl.d'

I added C:\dmd\src\ext\ to the build path, and all of the Derelict stuff pops up in code completion, so it knows it's there. I'm sure I'm missing something simple, what is it?

(Obviously I'm totally new to D)
Back to top
View user's profile Send private message
asterite



Joined: 01 Jun 2006
Posts: 235
Location: Buenos Aires, Argentina

PostPosted: Fri May 02, 2008 7:45 am    Post subject: Reply with quote

Note that Descent doesn't include an integrated compiler. You are probably using an external tool to compile it. In that case, you have to add the -I parameters to that command. In step 6 of http://dsource.org/projects/descent/wiki/CompilingPrograms

${resource_loc} -IC:\dmd\src\ext\

Hope that helps.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
BlackoutStout



Joined: 27 Apr 2008
Posts: 2

PostPosted: Fri May 02, 2008 3:57 pm    Post subject: Reply with quote

Gah! I knew it had to be something simple.

I just had ${resource_loc} under arguments... I didn't add -IC:\dmd\src\ext\

Makes perfect sense. Much appreciated!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Descent 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