HibernateD and DDBC - ORM and DB abstraction layer for D

David d at dav1d.de
Fri Apr 12 06:22:41 PDT 2013


Am 12.04.2013 15:17, schrieb Vadim Lopatin:
> Still cannot build library using DUB.
> 
> Tried different changes in package.json
> 
> dub -v
> ...
> [7F6FC283306F:00000000 INF] Running dmd (compile)...
> [7F6FC283306F:00000000 dbg] dmd -w -g -debug -c -oftemp.o
> -version=USE_MYSQL -I/home/lve/src/ddbc/source source/drivers/sha1.d
> source/drivers/pgsqlddbc.d source/drivers/pgsql.d
> source/drivers/mysqlddbc.d source/drivers/mysql.d source/drivers/utils.d
> source/drivers/sqliteddbc.d source/common.d source/core.d
> [7F6FC283306F:00000000 INF] Linking...
> [7F6FC283306F:00000000 dbg] dmd -of/tmp/dub/2946988246/libddbc.a temp.o
> /usr/lib/x86_64-linux-gnu/libphobos2.a(dmain2_47f_1a5.o): In function
> `main':
> 
> 
> Why does it try to link app executable instead of just link library?
> 
> 
> package.json:
> 
> {
>     "name": "DDBC",
>     "description": "DB Connector for D language, similar to JDBC",
>     "authors": ["Vadim Lopatin"],
>     "homepage": "http://sourceforge.net/projects/ddbc",
>     "license": "Boost Software License (BSL 1.0)",
>     "sourcePaths": ["source", "source/drivers"],
>     "configurations": [
>         {
>             "name": "MySQL",
>             "versions": ["USE_MYSQL"],
>             "targetType": "staticLibrary",
>             "targetPath": "bin",
>             "targetName": "ddbc",
>         }
>     ]
> }

Try to move targetType one level higher?


More information about the Digitalmars-d-announce mailing list