DUB linking problem on WinXp
Orfeo via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jun 20 00:18:57 PDT 2014
Well, after many attempts, I have found what is causing the
problem.
My dub.json :
```
{
"name": "ddb_test",
"description": "A minimal D application.",
"dependencies": {
"gtk-d:gtkd": ">=2.3.3",
"ddb": ">=0.2.1"
}
}
```
My source (source/app.d):
```
import ddb.postgres;
import gtk.Window;
int main(string[] argv) {
return 0;
}
```
On linux works, on WinXp and Win7 64bit I get following:
```
$ dub build --force
Building ddb 0.2.1 configuration "library", build type debug.
Running dmd...
Building gtk-d:gtkd 2.3.3 configuration "library", build type
debug.
Running dmd...
Building ddb_test ~master configuration "application", build type
debug.
Compiling using dmd...
Linking...
--- errorlevel 1
FAIL
.dub\build\application-debug-windows-x86-dmd-5D99A10B3D44C3F39E37BD10F5149BF7\
ddb_test executable
Error executing command build: dmd failed with exit code 1
```
If I comment just a row on app.d:
```
import ddb.postgres;
// import gtk.Window; <= !!!!
int main(string[] argv) {
return 0;
}
```
it works!
Is it a GtkD or ddb or optliker problem?
Incidentally if I try release version (on linux and Win):
```
$dub --build=release
ddb: ["ddb"]
gtk-d:gtkd: ["gtk-d:gtkd"]
ddb_test: ["ddb_test", "ddb", "gtk-d:gtkd"]
Building ddb configuration "library", build type release.
Running dmd...
Building gtk-d:gtkd configuration "library", build type release.
Running dmd...
../../../.dub/packages/gtk-d-2.3.3/src/gtk/Builder.d(489): Error:
ICE: cannot append 'char' to 'string'
Internal error: e2ir.c 3204
FAIL
../../../.dub/packages/gtk-d-2.3.3/.dub/build/library-release-linux.posix-x86_64-dmd-AB3D2656D2B9D0AA591491D684B048DC
gtkd-2 staticLibrary
Error executing command run: DMD compile run failed with exit
code 1
```
More information about the Digitalmars-d-learn
mailing list