FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem when compiling vector.d

 
Post new topic   Reply to topic     Forum Index -> MiniD
View previous topic :: View next topic  
Author Message
moechofe



Joined: 07 Oct 2006
Posts: 25
Location: Paris, France

PostPosted: Sat Jan 03, 2009 8:24 pm    Post subject: Problem when compiling vector.d Reply with quote

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
View user's profile Send private message
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Sat Jan 03, 2009 8:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
moechofe



Joined: 07 Oct 2006
Posts: 25
Location: Paris, France

PostPosted: Sun Jan 04, 2009 6:55 am    Post subject: Reply with quote

Tanx, I will update.
Happy New Year
Back to top
View user's profile Send private message
moechofe



Joined: 07 Oct 2006
Posts: 25
Location: Paris, France

PostPosted: Sun Jan 04, 2009 9:52 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
JarrettBillingsley



Joined: 20 Jun 2006
Posts: 457
Location: Pennsylvania!

PostPosted: Sun Jan 04, 2009 4:50 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
moechofe



Joined: 07 Oct 2006
Posts: 25
Location: Paris, France

PostPosted: Mon Jan 05, 2009 9:42 am    Post subject: Reply with quote

Tanx again, I'll check this!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> MiniD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group