Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
gcc4.7 can't build codeblocks
MortenMacFly:
--- Quote from: reckless on May 19, 2012, 09:44:14 am ---@ Morten. Only with the patches from here + -fpermissive in the compiler vars.
--- End quote ---
What patches are left? The help-plugin is up-to-date. Is there something else missing?
xunxun:
--- Quote from: MortenMacFly on May 19, 2012, 02:53:49 pm ---
--- Quote from: reckless on May 19, 2012, 09:44:14 am ---@ Morten. Only with the patches from here + -fpermissive in the compiler vars.
--- End quote ---
What patches are left? The help-plugin is up-to-date. Is there something else missing?
--- End quote ---
You can see
http://forums.codeblocks.org/index.php/topic,16039.msg109945.html#msg109945
MortenMacFly:
--- Quote from: xunxun on May 19, 2012, 04:28:05 pm ---http://forums.codeblocks.org/index.php/topic,16039.msg109945.html#msg109945
--- End quote ---
Thats what I meant with:
--- Quote from: MortenMacFly on May 19, 2012, 02:53:49 pm ---The help-plugin is up-to-date.
--- End quote ---
So this is in SVN already, isn't it? So nothing to do here.
reckless:
patched before trunk update so didnt know. Ok nothing to report then.
Jenna:
--- Quote from: xunxun on April 16, 2012, 05:56:03 pm ----fpermissive can't fix all things (especially in contrib plugins), maybe you can try SharkCZ's patches.
Hope Jens will fix soon.
--- End quote ---
Long time ago:
After many fixes from killerbot to silent warnings on gcc4.7 and a pm from him, it looks like I found a solution for the "-fpermissive"-desaster:
--- Code: ---commit e70c8a008439072718760876b048deae1ec74c27
Author: Jens Lody <jens@codeblocks.org>
Date: Mon Aug 6 23:30:49 2012 +0200
* gcc 4.7 fixes
Index: src/include/scripting/bindings/sc_base_types.h
===================================================================
--- src/include/scripting/bindings/sc_base_types.h
+++ src/include/scripting/bindings/sc_base_types.h
@@ -33,6 +33,7 @@ DECLARE_INSTANCE_TYPE(wxPoint);
DECLARE_INSTANCE_TYPE(wxSize);
DECLARE_INSTANCE_TYPE(wxString);
+using SqPlus::GetTypeName;
// C::B primitives and types
DECLARE_INSTANCE_TYPE(ConfigManager);
DECLARE_INSTANCE_TYPE(EditorManager);
@@ -59,6 +60,7 @@ namespace SqPlus \
inline T Get(TypeWrapper<T>,HSQUIRRELVM v,int idx) { SQInteger i; SQPLUS_CHECK_GET(sq_getinteger(v,idx,&i)); return (T)i; } \
}
+using SqPlus::Push;
DECLARE_ENUM_TYPE(wxPathFormat);
DECLARE_ENUM_TYPE(wxPathNormalize);
DECLARE_ENUM_TYPE(PrintColourMode);
Index: src/plugins/contrib/codesnippets/codesnippets.cpp
===================================================================
--- src/plugins/contrib/codesnippets/codesnippets.cpp
+++ src/plugins/contrib/codesnippets/codesnippets.cpp
@@ -93,7 +93,6 @@ CodeSnippets::CodeSnippets()
m_bMouseLeftKeyDown = false;
m_bMouseIsDragging = false;
m_bDragCursorOn = false;
- m_pDragCursor = false;
m_MouseDownX = m_MouseDownY = 0;
m_MouseUpX = m_MouseUpY = 0;
#if !wxCHECK_VERSION(2, 8, 12)
Index: src/plugins/contrib/help_plugin/defs.h
===================================================================
--- src/plugins/contrib/help_plugin/defs.h
+++ src/plugins/contrib/help_plugin/defs.h
@@ -297,7 +297,7 @@ class QMap : public std::map<Key, T>
int remove(const Key &k)
{
- return erase(k);
+ return this->erase(k);
}
};
Index: src/plugins/debuggergdb/gdb_driver.cpp
===================================================================
--- src/plugins/debuggergdb/gdb_driver.cpp
+++ src/plugins/debuggergdb/gdb_driver.cpp
@@ -82,6 +82,7 @@ static wxRegEx reInferiorExited2(wxT("^\\[[Ii]nferior[ \\t].+[ \\t]exited[ \\t]w
wxRE_EXTENDED);
// scripting support
+using SqPlus::Push;
DECLARE_INSTANCE_TYPE(GDB_driver);
GDB_driver::GDB_driver(DebuggerGDB* plugin)
--- End code ---
Any feedback welcome!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version