View previous topic :: View next topic |
Author |
Message |
heromyth
Joined: 26 Nov 2006 Posts: 46
|
Posted: Tue Apr 13, 2010 8:44 am Post subject: [patch]For builds with DMD 2.043 on Windows 7 |
|
|
The build is OK on WinXP SP3, but failed on Windows 7 without this patch.
The error message is:
Quote: | http://www.digitalmars.com/ctg/optlink.html
..\..\..\src\glib_Release.lib(Spawn)
Error 42: Symbol Undefined __D4glib5Spawn5Spawn6fdopenMUiPaZPOS4core4stdc5stdio6_iobuf
--- errorlevel 1
mingw32-make[2]: *** [demos/gtkD/TestWindow/TestWindow_Release.exe] Error 1
mingw32-make[1]: *** [demos/gtkD/TestWindow/CMakeFiles/TestWindow_Release.dir/all] Error 2
mingw32-make: *** [all] Error 2 |
Code: |
Index: src/glib/Spawn.d
===================================================================
--- src/glib/Spawn.d (revision 777)
+++ src/glib/Spawn.d (working copy)
@@ -94,7 +94,22 @@
}
+version(Tango)
+{
+ version (Windows)
+ extern (C) FILE* fdopen(int, char*); //Generates linker error on linux.
+ else
+ private import tango.stdc.posix.stdio;
+}
+else version(D_Version2)
+{
+ version (Windows)
+ extern (C) FILE* fdopen(int, char*); //Generates linker error on linux.
+ else
+ private import core.sys.posix.stdio;
+}
+
/**
* Description
*/
@@ -202,21 +217,6 @@
return "";
}
- version(Tango)
- {
- version (Windows)
- extern (C) FILE* fdopen(int, char*); //Generates linker error on linux.
- else
- private import tango.stdc.posix.stdio;
- }
- else version(D_Version2)
- {
- version (Windows)
- extern (C) FILE* fdopen(int, char*); //Generates linker error on linux.
- else
- private import core.sys.posix.stdio;
- }
-
/**
* Executes the prepared process
*/
|
|
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Tue Apr 13, 2010 1:54 pm Post subject: |
|
|
Changed in svn r779. |
|
Back to top |
|
|
heromyth
Joined: 26 Nov 2006 Posts: 46
|
Posted: Wed Jun 23, 2010 8:52 pm Post subject: |
|
|
This bug comes back again. Check it, please! |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Thu Jun 24, 2010 2:28 pm Post subject: |
|
|
Try svn r794. |
|
Back to top |
|
|
heromyth
Joined: 26 Nov 2006 Posts: 46
|
Posted: Fri Jun 25, 2010 6:36 pm Post subject: |
|
|
Thanks!
This is still something missing in \src\gtkc\glibtypes.d like this.
version(D_Version2) {
private import std.c.stdio;
}
The using of FILE type needs it. |
|
Back to top |
|
|
Mike Wey
Joined: 07 May 2007 Posts: 428
|
Posted: Sat Jun 26, 2010 5:54 am Post subject: |
|
|
Only for D2 ?
Added in svn r796. |
|
Back to top |
|
|
|