View previous topic :: View next topic |
Author |
Message |
BlackoutStout
Joined: 27 Apr 2008 Posts: 2
|
Posted: Sun Apr 27, 2008 3:57 pm Post subject: How to reference libraries? |
|
|
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 |
|
|
asterite
Joined: 01 Jun 2006 Posts: 235 Location: Buenos Aires, Argentina
|
Posted: Fri May 02, 2008 7:45 am Post subject: |
|
|
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 |
|
|
BlackoutStout
Joined: 27 Apr 2008 Posts: 2
|
Posted: Fri May 02, 2008 3:57 pm Post subject: |
|
|
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 |
|
|
|