View previous topic :: View next topic |
Author |
Message |
Alan Knowles
Joined: 23 May 2006 Posts: 11
|
Posted: Sat Feb 23, 2008 7:32 pm Post subject: GDC building of ddbi 0.2.5 |
|
|
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 |
|
|
stonecobra
Joined: 25 May 2004 Posts: 48 Location: Rough and Ready, CA
|
Posted: Mon Feb 25, 2008 4:10 pm Post subject: |
|
|
I don't know where it could be picking up the Tango version statement, unless you actually have Tango installed somehow. |
|
Back to top |
|
|
stonecobra
Joined: 25 May 2004 Posts: 48 Location: Rough and Ready, CA
|
Posted: Mon Feb 25, 2008 4:10 pm Post subject: |
|
|
I don't know where it could be picking up the Tango version statement, unless you actually have Tango installed somehow. |
|
Back to top |
|
|
Alan Knowles
Joined: 23 May 2006 Posts: 11
|
Posted: Fri Feb 29, 2008 5:37 pm Post subject: |
|
|
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 |
|
|
|