Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Issue building 7881 with wx 2.8

(1/2) > >>

ironhead:
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
--- End code ---

MortenMacFly:

--- Quote from: 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:

--- End quote ---
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) )

--- End code ---

Biplab:
Fix committed in Rev 7882.

MortenMacFly:

--- Quote from: Biplab on March 03, 2012, 04:30:32 pm ---Fix committed in Rev 7882.

--- End quote ---
Ah - now I got it, yes - that explains the error. Thanks Biplab!

oBFusCATed:
Biplab: How do you manage to commit the last fix? Using svn+ssh://svn.berlios.de fails for the last couple of days :(

Navigation

[0] Message Index

[#] Next page

Go to full version