Using libraries in VisualD

Zaggy1024 Zaggy1024 at gmail.com
Thu Apr 3 19:56:06 PDT 2014


On Friday, 4 April 2014 at 00:44:52 UTC, Mike Parker wrote:
> On 4/4/2014 8:45 AM, Zaggy1024 wrote:
>
>>
>> I tried putting this in the Library Files field in the linker 
>> settings:
>>
>> "C:\DSFML\prebuilt\dsfml-system.lib;C:\DSFML\prebuilt\dsfml-window.lib;C:\DSFML\prebuilt\dsfml-network.lib;C:\DSFML\prebuilt\dsfml-graphics.lib;C:\DSFML\prebuilt\dsfml-audio.lib"
>>
>>
>> But when I try using "import dsfml.system.sleep;" to import a 
>> part of
>> the library, it spouts this:
>>
>> "main.d(3): Error: module sleep is in file 
>> 'dsfml\system\sleep.d' which
>> cannot be read"
>>
>> If anyone knows what I'm doing wrong, I'd appreciate the help. 
>> :)
>
> You haven't configured your import path. The libraries are for 
> the linker, but you need the source modules on the import path 
> for the compiler. So assuming C:\dev\source\dsfml, you'll need 
> to put C:\dev\source somewhere in the compiler settings.

Thanks for the help.

I put the source location into "Additional Imports", and it gave 
this error:

"Error 42: Symbol Undefined _D5dsfml6system5sleep12__ModuleInfoZ"

I tried removing the linker's library files, but the error stayed 
the same.


More information about the Digitalmars-d-ide mailing list