Using libraries in VisualD
Mike Parker
aldacron at gmail.com
Thu Apr 3 17:44:57 PDT 2014
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.
More information about the Digitalmars-d-ide
mailing list