how do I prevent null errors when using __traits(derivedMembers

2016-05-02 Thread Pedro Lopes via Digitalmars-d-learn
Hello, I've been poking around with "__traits", and I came across a problem: whenever I run a code like this "__traits(derivedMembers,members[i]);" I inevitably find a member that has no derived members, and inevitably the compiler tells me that I have an error: "Error: argument has no

Re: Dub and derelict-allegro5 "Could not find a valid dependency tree configuration"

2016-04-14 Thread Pedro Lopes via Digitalmars-d-learn
On Wednesday, 13 April 2016 at 12:34:52 UTC, Mike Parker wrote: On Wednesday, 13 April 2016 at 11:21:25 UTC, Pedro Lopes wrote: In the second paragraph I meant to say: The first library that Derelict-Allegro (not dub) looks for is called: "liballegro_image-5.0.11.so" ... I know dub has

Re: Dub and derelict-allegro5 "Could not find a valid dependency tree configuration"

2016-04-13 Thread Pedro Lopes via Digitalmars-d-learn
In the second paragraph I meant to say: The first library that Derelict-Allegro (not dub) looks for is called: "liballegro_image-5.0.11.so" ... I know dub has nothing to do with this at this point it already compile and linked it just couldn't execute for not finding the library.

Re: Dub and derelict-allegro5 "Could not find a valid dependency tree configuration"

2016-04-13 Thread Pedro Lopes via Digitalmars-d-learn
On Tuesday, 12 April 2016 at 13:01:59 UTC, Mike Parker wrote: On Tuesday, 12 April 2016 at 09:19:14 UTC, Pedro Lopes wrote: I changed the dub.sdl dependency to version 0.0.5, but dub cant recognize that version: "Root package allegrotest contains reference to invalid package derelict-allegro5

Re: Dub and derelict-allegro5 "Could not find a valid dependency tree configuration"

2016-04-12 Thread Pedro Lopes via Digitalmars-d-learn
Never mind, I used version 0.0.3, now works. Thank you.

Re: Dub and derelict-allegro5 "Could not find a valid dependency tree configuration"

2016-04-12 Thread Pedro Lopes via Digitalmars-d-learn
On Monday, 11 April 2016 at 15:51:51 UTC, Mike Parker wrote: On Monday, 11 April 2016 at 10:34:58 UTC, Pedro Lopes wrote: it is definitely derelict-allegro5's fault. Yes. As I said in my second post, change your dependency to 0.0.5 and you should be good to go. I changed the dub.sdl

Re: Dub and derelict-allegro5 "Could not find a valid dependency tree configuration"

2016-04-11 Thread Pedro Lopes via Digitalmars-d-learn
On Monday, 11 April 2016 at 00:36:28 UTC, Mike Parker wrote: You say it happens when you try to "run" a project, but the error message sounds like it's happening before building even begins, correct? What platform are you on? What does your dub configuration look like? What does 'dub build

Dub and derelict-allegro5 "Could not find a valid dependency tree configuration"

2016-04-10 Thread Pedro Lopes via Digitalmars-d-learn
Hello, Every time I try to run a project with derelict-allegro5 package as a dependency, dub says: "Could not find a valid dependency tree configuration" I already cleaned the dub cache, that does not solve it, allegro package is installed (from alleg.sourceforge.net). dub works with

Re: SDL Error: identifier expected following '.', not 'version'

2016-03-27 Thread Pedro Lopes via Digitalmars-d-learn
Thanks!

SDL Error: identifier expected following '.', not 'version'

2016-03-27 Thread Pedro Lopes via Digitalmars-d-learn
Hello, whenever I try to compile this chunk of code: [code] SDL_SysWMinfo info; SDL_VERSION(); if(SDL_GetWindowWMInfo(win,)) { writeln(info.subsystem); } [/code] this error shows up: Error: identifier expected following '.', not 'version' BTW, i'm following the SDL official documentation