SFML community forums

Bindings - other languages => D => Topic started by: RobotGymnast on January 30, 2011, 05:14:18 pm

Title: DSFML broken
Post by: RobotGymnast on January 30, 2011, 05:14:18 pm
DSFML fails to compile using dmd v2.051. This means the SVN code and the version on the download page.

I've fixed code so that at least dsfml-window builds; diff uploaded at http://pastebin.com/djtz4P9g.

The main issues had to do with string literals not being equivalent to
Code: [Select]
char[] but rather
Code: [Select]
immutable char[] Also,

Code: [Select]
this inside a member function is a reference, not a pointer.
Title: DSFML broken
Post by: CyberShadow on January 30, 2011, 05:27:42 pm
In the top level of the working directory, type:
svn diff > patch.diff
Title: DSFML broken
Post by: RobotGymnast on January 30, 2011, 05:35:07 pm
Quote from: "CyberShadow"
In the top level of the working directory, type:
svn diff > patch.diff


Euch I since discovered that TortoiseSVN doesn't appear to wrap the SVN executables, so I can't use typical SVN binaries separately from Tortoise. Figured out how to do it through the GUI, though, and put the diff on pastebin. Thanks!
Title: DSFML broken
Post by: Trass3r on January 30, 2011, 06:03:05 pm
That's because DSFML1 on the download page is targeted at D1 (and quite outdated).
Only use the svn version and SFML2.
Title: DSFML broken
Post by: RobotGymnast on January 30, 2011, 06:22:40 pm
Quote from: "Trass3r"
That's because DSFML1 on the download page is targeted at D1 (and quite outdated).
Only use the svn version and SFML2.


Where can that be found? It's not immediately apparent to me while browsing the repository.

Edit: Nevermind, found it under branches. Thanks