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

New Mac OS X (PPC/10.3) build

(1/3) > >>

afb:
I uploaded codeblocks-rev2886_macppc.zip to BerliOS,
it's built in the same manner as the previous binaries.

wxWidgets 2.6.3 (ANSI), Mac OS X 10.3, gcc 3.3 Apple
I disabled the code completion plugin (it didn't compile)

killerbot:

--- Quote ---I disabled the code completion plugin (it didn't compile)
--- End quote ---
what's exactly the problem/error ??

afb:

--- Quote ---what's exactly the problem/error ??

--- End quote ---

I got this on both Linux and Mac:


nativeparser.cpp: In member function `size_t
   NativeParser::FindAIMatches(Parser*, std::queue<ParserComponent,
   std::deque<ParserComponent, std::allocator<ParserComponent> > >,
   TokenIdxSet&, int, bool, bool, bool, short int, TokenIdxSet*)':
nativeparser.cpp:1379: error: no match for `std::_Rb_tree_iterator<int, const
   int&, const int*>& == int' operator
nativeparser.cpp:1381: error: no match for `std::_Rb_tree_iterator<int, const
   int&, const int*>& != int' operator
nativeparser.cpp:1394: error: no match for `std::_Rb_tree_iterator<int, const
   int&, const int*>& == int' operator

afb:
If it helps anyone, I did not get that nativeparser.cpp error with GCC 4.0.1 (Apple)

JThedering:
I also got this problem with GCC 4.1.1 on Linux.
I just (hopefully) fixed it in this way:
Index: nativeparser.cpp
===================================================================
--- nativeparser.cpp    (Revision 2892)
+++ nativeparser.cpp    (Arbeitskopie)
@@ -1376,9 +1376,9 @@
             TokenIdxSet::iterator itsearch;
             if (search_scope)
                 itsearch = search_scope->begin();
-            while (itsearch == 0 || itsearch != search_scope->end())
+            while (itsearch == (TokenIdxSet::iterator)0 || itsearch != search_scope->end())
             {
-                Token* parent = tree->at(itsearch != 0 ? *itsearch : parentTokenIdx);
+                Token* parent = tree->at(itsearch != (TokenIdxSet::iterator)0 ? *itsearch : parentTokenIdx);
 #ifdef DEBUG_CC_AI
                 Manager::Get()->GetMessageManager()->DebugLog(_T(" : looking under '%s'"), parent ? parent->m_Name.c_str() : _T("Global namespace"));
 #endif
@@ -1391,7 +1391,7 @@
                         break;
                     parent = tree->at(parent->m_ParentIndex);
                 } while (true);
-                if (itsearch == 0)
+                if (itsearch == (TokenIdxSet::iterator)0)
                     break;
                 ++itsearch;
             }

Seems that you can't use an iterator as if it was a pointer.

Navigation

[0] Message Index

[#] Next page

Go to full version