View previous topic :: View next topic |
Author |
Message |
Phr00t
Joined: 03 Mar 2006 Posts: 203
|
Posted: Tue Jun 17, 2008 7:34 pm Post subject: Compiling FreeUniverse |
|
|
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? I'd like to continue work on FreeUniverse.. but this has been a show-stopper. |
|
Back to top |
|
|
clayasaurus
Joined: 21 May 2004 Posts: 857
|
Posted: Wed Jun 18, 2008 10:07 am Post subject: |
|
|
Give me a little bit of time to try and figure this one out.
~ Clay |
|
Back to top |
|
|
Phr00t
Joined: 03 Mar 2006 Posts: 203
|
Posted: Wed Jun 18, 2008 5:18 pm Post subject: |
|
|
FIXED!
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!
Thank you!
- Jeremy |
|
Back to top |
|
|
|