News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Issue building 7881 with wx 2.8

Started by ironhead, March 03, 2012, 03:41:50 PM

Previous topic - Next topic

ironhead

I just updated to rev. 7881 and I am now getting these errors when I try to compile:

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

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:
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:
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) )
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Biplab

Be a part of the solution, not a part of the problem.

MortenMacFly

Quote from: Biplab on March 03, 2012, 04:30:32 PM
Fix committed in Rev 7882.
Ah - now I got it, yes - that explains the error. Thanks Biplab!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

Biplab: How do you manage to commit the last fix? Using svn+ssh://svn.berlios.de fails for the last couple of days :(
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Jenna

#5
Quote from: 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 :(
Same here, but you can switch from svn+ssh to https like this on console:
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:
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:
svn switch --relocate FROM TO

Biplab

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

As jens pointed out, I'm using https protocol to access Berlios. :)
Be a part of the solution, not a part of the problem.