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

GDC building of ddbi 0.2.5

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



Joined: 23 May 2006
Posts: 11

PostPosted: Sat Feb 23, 2008 7:32 pm    Post subject: GDC building of ddbi 0.2.5 Reply with quote

I had a go at buidling with gdc the other day.

This builds perfectly well however I needed to remove almost all mentions of Tango from all files.

I think there is a problem with gdc that it parses code inside of version(Tango) {}
event though version=Tango is not defined anywhere..

Anyone know of any fixes - or would it be better if ddbi put all the tango+phobos code in a single place that could be better edited out for gdc users.. (or just done by something simple like ln -s ddbi/phoboslibwrapper.d ddbi/corelibwrapper.d )





Code:

MYDIR = /home/me/stuff \
gdc -g   -lsqlite3 -o/tmp/archiver -I${MYDIR}   \
   ${MYDIR}myapp.d \
   ${MYDIR}dbi/Database.d \
   ${MYDIR}dbi/DBIException.d \
   ${MYDIR}dbi/ErrorCode.d \
   ${MYDIR}dbi/Result.d \
   ${MYDIR}dbi/Row.d \
   ${MYDIR}dbi/Statement.d \
   ${MYDIR}dbi/sqlite/imp.d \
   ${MYDIR}dbi/sqlite/SqliteDatabase.d \
   ${MYDIR}dbi/sqlite/SqliteError.d \
   ${MYDIR}dbi/sqlite/SqliteResult.d
Back to top
View user's profile Send private message Send e-mail
stonecobra



Joined: 25 May 2004
Posts: 48
Location: Rough and Ready, CA

PostPosted: Mon Feb 25, 2008 4:10 pm    Post subject: Reply with quote

I don't know where it could be picking up the Tango version statement, unless you actually have Tango installed somehow.
Back to top
View user's profile Send private message
stonecobra



Joined: 25 May 2004
Posts: 48
Location: Rough and Ready, CA

PostPosted: Mon Feb 25, 2008 4:10 pm    Post subject: Reply with quote

I don't know where it could be picking up the Tango version statement, unless you actually have Tango installed somehow.
Back to top
View user's profile Send private message
Alan Knowles



Joined: 23 May 2006
Posts: 11

PostPosted: Fri Feb 29, 2008 5:37 pm    Post subject: Reply with quote

for some reason GDC actually parses the code inside
version(Tango) { ..... }

And tries to resolve the code insde that (eg. tango.XXXX ) - and throws an error.

I could not find a way to 'undefine' version variable in GDC.
Back to top
View user's profile Send private message Send e-mail
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