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

Import and Library paths

 
Post new topic   Reply to topic     Forum Index -> Visual D
View previous topic :: View next topic  
Author Message
StijnH



Joined: 12 Sep 2010
Posts: 4

PostPosted: Sun Sep 12, 2010 11:39 pm    Post subject: Import and Library paths Reply with quote

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;

Code:
DerelictAL.load();

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



Joined: 03 Mar 2007
Posts: 292

PostPosted: Mon Sep 13, 2010 12:19 am    Post subject: Re: Import and Library paths Reply with quote

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



Joined: 12 Sep 2010
Posts: 4

PostPosted: Mon Sep 13, 2010 2:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Visual D 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