Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - mutable

Pages: [1]
1
D / DSFML and dsss didn't work :/
« on: June 18, 2010, 01:31:49 am »
I just downloaded DFML under the following link
http://downloads.sourceforge.net/sfml/SFML-1.3-d-sdk-windows.zip
 and filed it in C:/D/DFML/.
After that I downloaded dsss and filed it in C:/D/dss and inserted it in my environment variables (%PATH%) in Windows so that I could give instructions from the cmd.exe, and that works so far.
Now I applied a dsss.conf data file and filed it in a test directory on my desktop in the folder D, which inhabites my test datas of d.

I have the following source code:
Code: [Select]

module veryquickstart;

import dsfml.system.all;
import dsfml.window.all;
import dsfml.graphics.all;

void main()
{
    RenderWindow app = new RenderWindow(VideoMode(800, 600, 32), "It works !");
    Shape s = Shape.circle(300.f, 300.f, 100.f, Color(120, 120, 120, 120));
    app.setFramerateLimit(100);
   
    Event evt;  
    while (app.isOpened())
    {
        while (app.getEvent(evt))
        {
            // close the window
            if ((evt.Type == Event.EventType.CLOSED) ||
               ((evt.Type == Event.EventType.KEYPRESSED) && (evt.Key.Code == KeyCode.ESCAPE)))
            {
                app.close();
                break;
            }        
        }

        s.move(0.1f, 0);
       
        app.draw(s);
        app.display();
    }
}

and the following dsss.conf data file:
Code: [Select]

[sfml_test.d]
buildflags += -Ic:\D\DSFML\import -Sc:\D\DSFML\extlibs\lib

 but I'm consistently getting the same error message if i try to put "dsss build" into the cmd.exe:
Quote

C:\Users\---\Desktop\D main\D>dsss build
sfml_test.d => sfml_test
c:\D\DSFML\import\dsfml\system\thread.d(38): module thread cannot read file 'std
\thread.d'
Command C:\dsss\bin\rebuild.exe returned with code 1, aborting.
Error: Command failed, aborting.


Here the corresponding part from "thread.d, the lines 38 and 39:
Code: [Select]

    static import std.thread;
    alias std.thread.Thread DThread;

Pages: [1]
anything