Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: ironhead on March 03, 2012, 03:41:50 pm

Title: Issue building 7881 with wx 2.8
Post by: ironhead on March 03, 2012, 03:41:50 pm
I just updated to rev. 7881 and I am now getting these errors when I try to compile:

Code
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:736:36: error: 'windows' is not a member of 'platform'
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:736:56: error: 'wxSCI_EOL_CRLF' was not declared in this scope
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:736:73: error: 'wxSCI_EOL_LF' was not declared in this scope
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:741:12: error: 'wxSCI_EOL_CR' was not declared in this scope
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:742:12: error: the value of 'wxSCI_EOL_LF' is not usable in a constant expression
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:736:73: note: 'wxSCI_EOL_LF' does not have integral or enumeration type
Title: Re: Issue building 7881 with wx 2.8
Post by: MortenMacFly on March 03, 2012, 03:52:37 pm
I just updated to rev. 7881 and I am now getting these errors when I try to compile:
Huh? How weird is that... what compiler do you use, as it works just fine for me...?!

As a work-around, what happens if you apply this patch:
Code
Index: src/plugins/scriptedwizard/wiz.cpp
===================================================================
--- src/plugins/scriptedwizard/wiz.cpp (revision 7881)
+++ src/plugins/scriptedwizard/wiz.cpp (working copy)
@@ -34,6 +34,7 @@
 #include <projectbuildtarget.h>
 #include <filefilters.h>
 #include <infowindow.h>
+#include <prep.h>
 
 #include <scripting/bindings/sc_base_types.h>
 
@@ -738,9 +739,9 @@
     wxString eol_str;
     switch (eolmode)
     {
-      case wxSCI_EOL_CR:  eol_str = _T("\r"); break;
-      case wxSCI_EOL_LF:  eol_str = _T("\n"); break;
-      default:            eol_str = _T("\r\n"); // means wxSCI_EOL_CRLF
+      case static_cast<int>(wxSCI_EOL_CR):  eol_str = _T("\r"); break;
+      case static_cast<int>(wxSCI_EOL_LF):  eol_str = _T("\n"); break;
+      default:                              eol_str = _T("\r\n"); // means wxSCI_EOL_CRLF
     }
 
     if ( cbWrite(f, contents + eol_str, wxFONTENCODING_UTF8) )
Title: Re: Issue building 7881 with wx 2.8
Post by: Biplab on March 03, 2012, 04:30:32 pm
Fix committed in Rev 7882.
Title: Re: Issue building 7881 with wx 2.8
Post by: MortenMacFly on March 03, 2012, 09:15:04 pm
Fix committed in Rev 7882.
Ah - now I got it, yes - that explains the error. Thanks Biplab!
Title: Re: Issue building 7881 with wx 2.8
Post by: oBFusCATed on March 03, 2012, 11:53:10 pm
Biplab: How do you manage to commit the last fix? Using svn+ssh://svn.berlios.de fails for the last couple of days :(
Title: Re: Issue building 7881 with wx 2.8
Post by: Jenna on March 04, 2012, 12:24:56 am
Biplab: How do you manage to commit the last fix? Using svn+ssh://svn.berlios.de fails for the last couple of days :(
Same here, but you can switch from svn+ssh to https like this on console:
Code
svn switch --relocate svn+ssh://jenslody@svn.berlios.de/svnroot/repos/codeblocks/trunk https://jenslody@svn.berlios.de/svnroot/repos/codeblocks/trunk
or for debugger-branch:
Code
svn switch --relocate svn+ssh://jenslody@svn.berlios.de/svnroot/repos/codeblocks/trunk https://jenslody@svn.berlios.de/svnroot/repos/codeblocks/trunk

The exact url's and username (of course)depend on what you had before.
in general:
Code
svn switch --relocate FROM TO
Title: Re: Issue building 7881 with wx 2.8
Post by: Biplab on March 04, 2012, 12:15:18 pm
Biplab: How do you manage to commit the last fix? Using svn+ssh://svn.berlios.de fails for the last couple of days :(

As jens pointed out, I'm using https protocol to access Berlios. :)