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

Compiling FreeUniverse

 
Post new topic   Reply to topic     Forum Index -> ArcLib
View previous topic :: View next topic  
Author Message
Phr00t



Joined: 03 Mar 2006
Posts: 203

PostPosted: Tue Jun 17, 2008 7:34 pm    Post subject: Compiling FreeUniverse Reply with quote

Hey all,

This problem is driving me nuts.. does anyone have any suggestions?

I get no code warnings / errors in the following code during compilation. I can have FU_ITEM and FU_SHIP objects, and I can have dlinkedlists of FU_SHIPs, but not of FU_ITEMs as they create linking errors.

Take the following test code:

Code:

module test;

private import arc.templates.dlinkedlist;

private import classes.item;
private import classes.ship;

void main() {

   FU_ITEM OKItem = new FU_ITEM();
   FU_SHIP OKShip = new FU_SHIP();

   dlinkedlist!(FU_ITEM) failItemList = new dlinkedlist!(FU_ITEM);
   dlinkedlist!(FU_SHIP) OKShipList = new dlinkedlist!(FU_SHIP);

}


It gives these errors on linking:

Code:

./_test.o: In function `_Dmain':
test.d:(.text._Dmain+0x25): undefined reference to `_D3arc9templates11dlinkedlist40__ T11dlinkedlistTC7classes4item7FU_ITEMZ11dlinkedlist7__ClassZ'
test.d:(.text._Dmain+0x30): undefined reference to `_D3arc9templates11dlinkedlist40__ T11dlinkedlistTC7classes4item7FU_ITEMZ11dlinkedlist5_ctorMFZC3arc9templates11dlinkedlist40__T11dlinkedlistTC7classes4item7FU_ITEMZ11dlinkedlist'


I am using:
* Ubuntu 8.04
* dmd v1.0.30
* GNU ld (GNU Binutils for Ubuntu) 2.18.0.20080103

Any ideas? Sad I'd like to continue work on FreeUniverse.. but this has been a show-stopper.
Back to top
View user's profile Send private message
clayasaurus



Joined: 21 May 2004
Posts: 857

PostPosted: Wed Jun 18, 2008 10:07 am    Post subject: Reply with quote

Give me a little bit of time to try and figure this one out.
~ Clay
Back to top
View user's profile Send private message AIM Address
Phr00t



Joined: 03 Mar 2006
Posts: 203

PostPosted: Wed Jun 18, 2008 5:18 pm    Post subject: Reply with quote

FIXED! Very Happy

It was a DSSS "Rebuild" setting.

I changed the dmd-posix in /dsss/rebuild.conf/ file from:

oneatatime=yes

to

oneatatime=no

and it works! Smile Smile Smile

Thank you!

- Jeremy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> ArcLib 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