Hello! Yes, I know this is probably a very basic issue. Although I've been very curious as in why does this.. not work? I've been bugging myself for an entire day, even if it may sound funny.. However I managed to compile this before, but it doesn't seem to work now, for some reason..
Basically I built DSFML and DSFMLC from source. Then I proceeded to build an example, app.d..
It imports dsfml.graphics. Then it simply displays a green face with two blue eyes and a red smile.
However, for some reason it won't compile now. It tells me the following error.
"app.d(3):Error: module graphics is in file "dsfml\graphics.d" which cannot be read
import path = DSFML\src\
import path = C:\D\dmd2\windows\bin\..\..\src\phobos
import path = C:\D\dmd2\windows\bin\..\..\src\druntime\import
The code (app.d)
void main(string args)
auto window = new RenderWindow(VideoMode(800,600),"Hello DSFML!");
auto head = new CircleShape(100);
head.fillColor = Color.Green;
head.position = Vector2f(300,100);
auto leftEye = new CircleShape(10);
leftEye.fillColor = Color.Blue;
leftEye.position = Vector2f(350,150);
auto rightEye = new CircleShape(10);
rightEye.fillColor = Color.Blue;
rightEye.position = Vector2f(430,150);
auto smile = new CircleShape(30);
smile.fillColor = Color.Red;
smile.position = Vector2f(368,200);
auto smileCover = new RectangleShape(Vector2f(60,30));
smileCover.fillColor = Color.Green;
smileCover.position = Vector2f(368,200);
if(event.type == event.EventType.Closed)
dmd app.d -IDSFML\src\ -L+DSFMLC\lib\ -L+DSFML\lib\ dsfml-graphics.lib dsfml-window.lib dsfml-system.lib dsfmlc-graphics.lib dsfmlc-window.lib dsfmlc-system.lib
I also put DSFMLC\lib, DSFML\lib and DSFML\src (DSFML and DSFMLC are located on my C:) into my PATH.
Can anyone please help? I'd appreciate it.