View previous topic :: View next topic |
Author |
Message |
moechofe
Joined: 07 Oct 2006 Posts: 25 Location: Paris, France
|
Posted: Sat Jan 03, 2009 8:24 pm Post subject: Problem when compiling vector.d |
|
|
HI
I have problem to compile vector.d
I try the simple example give in the API2/Part1 documentation.
After replacing the obsolete declaration "import tango.io.device.FilePath", i receive lot of compiling error from vector.d like:
Code: |
Error: slice expression (cast(byte*)*(&*memb + 0))[cast(uint)0..*(memb + 4)] is not a modifiable lvalue
Error: '(cast(byte*)*(&*memb + 0))[cast(uint)0..*(memb + 4)]' is not a scalar, it is a byte[]
Error: incompatible types for (((cast(byte*)*(&*memb + 0))[cast(uint)0..*(memb + 4)]) += (cast(int)cast(byte)val)): 'byte[]' and 'int'
|
I'm using DMD 1.033 and Tango 0.99.7 via DSSS
What do I hae to do ? |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Sat Jan 03, 2009 8:46 pm Post subject: |
|
|
You have to use DMD 1.034 or newer. vector.d uses array operations, which were not introduced until 1.034.
Also, the import of tango.io.device.FileConduit is not obsolete - quite the opposite. The HEAD revision of the MiniD trunk requires Tango revision 4048, which is newer than 0.99.7. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
moechofe
Joined: 07 Oct 2006 Posts: 25 Location: Paris, France
|
Posted: Sun Jan 04, 2009 6:55 am Post subject: |
|
|
Tanx, I will update.
Happy New Year |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
moechofe
Joined: 07 Oct 2006 Posts: 25 Location: Paris, France
|
Posted: Sun Jan 04, 2009 9:52 am Post subject: |
|
|
Hi
I updated my version of DMD, Tango and MiniD.
And I compile MiniD and obtain the DD-minid. and put it in my lib dir.
But now, I have lot of link error such as:
Code: |
dsss_objs\D\minid-vector.obj(minid-vector)
Error 42: Symbol Undefined __arrayExpSliceAddass_f
dsss_objs\D\minid-vector.obj(minid-vector)
Error 42: Symbol Undefined __arrayExpSliceAddass_d
dsss_objs\D\minid-vector.obj(minid-vector)
Error 42: Symbol Undefined __arraySliceSliceAddass_d
|
Do I need to re-compile the Tango lib? I can't find how to do that!
sorry for my english
It's hard to dev with D! Actually, lot of cool library (Mango, MiniD, FastCGI4d) use a different version of Tango. ![Confused](images/smiles/icon_confused.gif) |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
JarrettBillingsley
Joined: 20 Jun 2006 Posts: 457 Location: Pennsylvania!
|
Posted: Sun Jan 04, 2009 4:50 pm Post subject: |
|
|
Yes, you need to recompile the Tango lib. DMD is generating references to those array operation functions but the older Tango lib doesn't have them.
To recompile the Tango lib, follow the "Manual Build and Install" instructions for your appropriate platform and compiler here.
Also, don't worry about your English - it's just fine ![Smile](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
moechofe
Joined: 07 Oct 2006 Posts: 25 Location: Paris, France
|
Posted: Mon Jan 05, 2009 9:42 am Post subject: |
|
|
Tanx again, I'll check this! |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|