View previous topic :: View next topic |
Author |
Message |
StijnH
Joined: 12 Sep 2010 Posts: 4
|
Posted: Sun Sep 12, 2010 11:39 pm Post subject: Import and Library paths |
|
|
Hello,
I've managed to build Derelict 2 with Visual D and have the import and lib directories.
I've added $(DMDInstallDir)src\ext\Derelict2\import to the Import paths and $(DMDInstallDir)src\ext\Derelict2\lib to the Library paths.
Trying a simple example:
Code: | import derelict.openal.al; |
returns the following error
Quote: | Error 1 Error: module al is in file 'derelict\openal\al.d' which cannot be read main.d |
Did I make an error in configuring the Import and Library paths? |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Mon Sep 13, 2010 12:19 am Post subject: Re: Import and Library paths |
|
|
Hi,
StijnH wrote: |
returns the following error
Quote: | Error 1 Error: module al is in file 'derelict\openal\al.d' which cannot be read main.d |
Did I make an error in configuring the Import and Library paths? |
I can't tell if your paths are correct for derelict2, but this is dmd's way of telling you that it could not find the imported module. Recent versions of dmd should list the searched import paths helping you to spot the problem.
Checking the contents of the buildlog.html might also help, you'll find the actual dmd command line there.
Regarding library paths: please see http://www.dsource.org/projects/visuald/wiki/KnownIssues#Librarysearchpathnotpassedtolinker for an issue with these and the workaround.
Rainer |
|
Back to top |
|
|
StijnH
Joined: 12 Sep 2010 Posts: 4
|
Posted: Mon Sep 13, 2010 2:51 pm Post subject: |
|
|
I've added the import path to sc.ini and that has fixed it. I'm now getting Derelict related errors so I've made a post in the Derelict forum.
Thank you for your help. |
|
Back to top |
|
|
|