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

[patch]For builds with DMD 2.043 on Windows 7

 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
heromyth



Joined: 26 Nov 2006
Posts: 46

PostPosted: Tue Apr 13, 2010 8:44 am    Post subject: [patch]For builds with DMD 2.043 on Windows 7 Reply with quote

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Tue Apr 13, 2010 1:54 pm    Post subject: Reply with quote

Changed in svn r779.
Back to top
View user's profile Send private message
heromyth



Joined: 26 Nov 2006
Posts: 46

PostPosted: Wed Jun 23, 2010 8:52 pm    Post subject: Reply with quote

This bug comes back again. Check it, please!
Back to top
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Thu Jun 24, 2010 2:28 pm    Post subject: Reply with quote

Try svn r794.
Back to top
View user's profile Send private message
heromyth



Joined: 26 Nov 2006
Posts: 46

PostPosted: Fri Jun 25, 2010 6:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Sat Jun 26, 2010 5:54 am    Post subject: Reply with quote

Only for D2 ?

Added in svn r796.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD 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