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

Undefinded reference during compilation of simple code

 
Post new topic   Reply to topic     Forum Index -> DDBI
View previous topic :: View next topic  
Author Message
flourish



Joined: 22 Aug 2008
Posts: 1

PostPosted: Fri Aug 22, 2008 4:42 pm    Post subject: Undefinded reference during compilation of simple code Reply with quote

Hi,

I've just installed ddbi with
Code:

dsss net install ddbi


Now, when I try to compile the following code...
Code:

module test;
import dbi.sqlite.SqliteDatabase;

void main() {
   SqliteDatabase test;
}

... I get this linking error:
Code:

main.d => ../bin/test
+ /usr/bin/rebuild -Idsss_imports/ -I. -S./ -I/home/flourish/d/include/d -S/home/flourish/d/lib/ -I/usr/include/d -I/usr/include/d/tango-gdc -S/usr/lib/tango-gdc -version=dbi_sqlite  -I/usr/include/d -S/usr/lib -I/home/flourish/d/include/d -S/home/flourish/d/lib  -oqdsss_objs/G  main.d -of../bin/test
dsss_objs/G/_test.o:(.data+0x5b0): undefined reference to `_D3dbi6sqlite14SqliteDatabase12__ModuleInfoZ'
collect2: ld returned 1 exit status
Command /usr/bin/rebuild returned with code 65280, aborting.
Error: Command failed, aborting.


Build command was:
Quote:

dsss-gdc build -I/usr/include/d -I/usr/include/d/tango-gdc -S/usr/lib/tango-gdc -version=dbi_sqlite


Any hint how to fix this?

Thanks in advance,
-flourish
Back to top
View user's profile Send private message
larsivi
Site Admin


Joined: 27 Mar 2004
Posts: 453
Location: Trondheim, Norway

PostPosted: Sun Aug 24, 2008 1:57 pm    Post subject: Reply with quote

Hi flourish - there was a similar question on IRC recently - I think that the dsss net install may do some bad things (like install without the -version=dbi_sqlite).

could you try to use dsss install in ddbi's svn root?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DDBI 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