View previous topic :: View next topic |
Author |
Message |
bioinfornatics
Joined: 22 Jun 2010 Posts: 90
|
Posted: Tue Dec 28, 2010 8:55 am Post subject: build fail |
|
|
hi a little error when i try build with ldc or dmd
Code: | ldc -g -O -op -inline -c -I../ Rae.d -Hd../../include/rae/ -of../../build/rae/Rae.o
../rae/canvas/ICanvasItem.d(338): Error: forward reference of enum RequestArrangeType.WINDOW
Error: cannot implicitly convert expression (false) of type TOK149 to RequestArrangeType
../rae/canvas/PlainRectangle.d(2419): Error: forward reference of enum RequestArrangeType.WINDOW
Error: cannot implicitly convert expression (false) of type TOK149 to RequestArrangeType
|
|
|
Back to top |
|
|
kaarna
Joined: 03 Apr 2006 Posts: 92 Location: Finland
|
Posted: Thu Dec 30, 2010 3:48 am Post subject: |
|
|
I haven't yet made the change to tango 0.99.9, but I guess you are trying this with tango 0.99.8 then? Of course that wouldn't matter with the compile problem you're getting.
I've had a lot of forward reference problems in the past. If that's really what this is, then it might be best to put enum RequestArrangeType into it's own file, for example rae/canvas/RequestArrangeType.d. I've done this for a couple of types that had forward referencing problems, and it usually has worked...
I'm still using DSSS and it does a pretty good job with the forward references. But I'm not sure if it's really DSSS that is good, or maybe the old GDC I'm using is good in this way. I don't know... |
|
Back to top |
|
|
bioinfornatics
Joined: 22 Jun 2010 Posts: 90
|
Posted: Mon Jan 03, 2011 4:11 pm Post subject: |
|
|
you can use dmake instead of dsss. Just move your source file into a src directory and just do:
Code: | $ dmake --source src/ --lib src/rae |
done |
|
Back to top |
|
|
|