View previous topic :: View next topic |
Author |
Message |
flourish
Joined: 22 Aug 2008 Posts: 1
|
Posted: Fri Aug 22, 2008 4:42 pm Post subject: Undefinded reference during compilation of simple code |
|
|
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 |
|
|
larsivi Site Admin
Joined: 27 Mar 2004 Posts: 453 Location: Trondheim, Norway
|
Posted: Sun Aug 24, 2008 1:57 pm Post subject: |
|
|
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 |
|
|
|