User forums > Help
Compile Errors when building Code::Blocks source
stahta01:
--- Quote from: BlueHazzard on February 12, 2017, 05:20:51 pm ---After compilation you have to run the "update30" script in the src subfolder. This script will copy all needed resources (like images) to the right place. I think this is the reason for the missing symbols? I can't find a error in your screenshot... They are all disabled, because no project is loaded?
--- Quote ---Here is the error seen when starting up Code::Blocks for the first time after being compiled with wxWidgets 3.1.0.
--- End quote ---
probably the same as: https://sourceforge.net/p/codeblocks/tickets/387/
@obfuscated:Does this come from the symol browser?
You can disable the symbol browser by Settings->Editor->Code Completion->Symbol browser->Disable symbol browser (this is only from memory, the actual names can alter, but this should give you a hint where to look)
--- Quote ---
--- Code: ---menuitemsmanager.Tpo -c menuitemsmanager.cpp -fPIC -DPIC -o .libs/menuitemsmanager.o
macrosmanager.cpp: In member function ‘void MacrosManager::Reset()’:
macrosmanager.cpp:93:33: error: ‘wxRE_ADVANCED’ was not declared in this scope
wxRE_ADVANCED);
^~~~~~~~~~~~~
--- End code ---
--- Code: ---./src/stc/scintilla/src/Editor.cxx: In function ‘bool Close(Point, Point)’:
./src/stc/scintilla/src/Editor.cxx:5844:23: error: call of overloaded ‘abs(XYPOSITION)’ is ambiguous
if (abs(pt1.x - pt2.x) > 3
--- End code ---
--- End quote ---
both errors come from codeblocks? So wxWidgets compiles fine? Funny, i never saw any errors like this on compiling codeblocks...
what is the command line you compiled wxWidgets with?
--- End quote ---
The wxRE_ADVANCED is because he failed to build wxWidgets using the builtin regex.
Add wxWidgets configure option
--- Code: -----with-regex=builtin
--- End code ---
Note: The CB dev team should fix this so the option is NOT needed; because in the past, Mac users tended to NOT use wxWidgets with builtin regex.
The abs is fixed by a small patch. IIRC, a newer compiler causes the error.
Patch for abs issue under GCC 6.
--- Code: ---diff -uNr wxWidgets-3.0.2.orig/src/stc/scintilla/src/Editor.cxx wxWidgets-3.0.2.mod/src/stc/scintilla/src/Editor.cxx
--- wxWidgets-3.0.2.orig/src/stc/scintilla/src/Editor.cxx 2016-07-22 11:35:57.000000000 +0500
+++ wxWidgets-3.0.2.mod/src/stc/scintilla/src/Editor.cxx 2016-07-22 11:30:51.000000000 +0500
@@ -11,6 +11,7 @@
#include <ctype.h>
#include <assert.h>
+#include <cmath>
#include <string>
#include <vector>
#include <map>
@@ -5841,9 +5842,9 @@
}
static bool Close(Point pt1, Point pt2) {
- if (abs(pt1.x - pt2.x) > 3)
+ if (std::abs(pt1.x - pt2.x) > 3)
return false;
- if (abs(pt1.y - pt2.y) > 3)
+ if (std::abs(pt1.y - pt2.y) > 3)
return false;
return true;
}
--- End code ---
Tim S.
yvesdm3000:
--- Quote from: GameCodingNinja on February 12, 2017, 04:10:30 pm ---As I stated in my last post, I need wxWidgets 3.0 or greater for this other app I use. SVN tip of Code::Blocks with wxWidgets 3.1.0 compiles without a problem.
--- End quote ---
FYI if you use the --prefix=/some/path/to/codeblocks for configure of both wxwidgets and codeblocks, you can easily use codeblocks with wx28 and other apps with another version of wx.
That is what I currently do for testing code with both wx28 and wx30 : i simply use 2 separate directories for both codeblockses.
Yves
Navigation
[0] Message Index
[*] Previous page
Go to full version