Author Topic: Compilation error with 7770  (Read 5626 times)

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Compilation error with 7770
« on: February 05, 2012, 12:15:38 am »
I just updated to the latest svn as of this post (7770) I am now receiving an error:

Code
C:/codeblocks/trunk/src/plugins/codecompletion/classbrowserbuilderthread.cpp:1082: undefined reference to `CCTreeCtrlExpandedItemData::CCTreeCtrlExpandedItemData(CCTreeCtrlData const*, int)'

I executed a rebuild (to clean before compilation).  Did I miss a step or something?

Edit: Actually there are a lot more.  Here's the full log:

Code
\C:\codeblocks\trunk\src\plugins\codecompletion\nativeparser.cpp|4232|warning: unused variable 'tree' [-Wunused-variable]|
.objs\plugins\codecompletion\classbrowserbuilderthread.o||In function `ZN25ClassBrowserBuilderThread9BuildTreeEv':|
C:\codeblocks\trunk\src\plugins\codecompletion\classbrowserbuilderthread.cpp|241|undefined reference to `CCTreeCtrlData::CCTreeCtrlData(SpecialFolder, Token*, short, int)'|
C:\codeblocks\trunk\src\plugins\codecompletion\classbrowserbuilderthread.cpp|245|undefined reference to `CCTreeCtrl::SetCompareFunction(BrowserSortType)'|
C:\codeblocks\trunk\src\plugins\codecompletion\classbrowserbuilderthread.cpp|246|undefined reference to `CCTreeCtrl::SetCompareFunction(BrowserSortType)'|
.objs\plugins\codecompletion\classbrowserbuilderthread.o||In function `ZN25ClassBrowserBuilderThread10ExpandItemE12wxTreeItemId':|
C:\codeblocks\trunk\src\plugins\codecompletion\classbrowserbuilderthread.cpp|423|undefined reference to `CCTreeCtrlData::CCTreeCtrlData(SpecialFolder, Token*, short, int)'|
C:\codeblocks\trunk\src\plugins\codecompletion\classbrowserbuilderthread.cpp|428|undefined reference to `CCTreeCtrlData::CCTreeCtrlData(SpecialFolder, Token*, short, int)'|
.objs\plugins\codecompletion\classbrowserbuilderthread.o||In function `ZN25ClassBrowserBuilderThread8AddNodesEP10CCTreeCtrl12wxTreeItemIdRKSt3setIiSt4lessIiESaIiEEsib':|
C:\codeblocks\trunk\src\plugins\codecompletion\classbrowserbuilderthread.cpp|777|undefined reference to `CCTreeCtrlData::CCTreeCtrlData(SpecialFolder, Token*, short, int)'|
.objs\plugins\codecompletion\classbrowserbuilderthread.o||In function `ZN25ClassBrowserBuilderThread20CreateSpecialFoldersEP10CCTreeCtrl12wxTreeItemId':|
C:\codeblocks\trunk\src\plugins\codecompletion\classbrowserbuilderthread.cpp|1039|undefined reference to `CCTreeCtrlData::CCTreeCtrlData(SpecialFolder, Token*, short, int)'|
C:\codeblocks\trunk\src\plugins\codecompletion\classbrowserbuilderthread.cpp|1041|undefined reference to `CCTreeCtrlData::CCTreeCtrlData(SpecialFolder, Token*, short, int)'|
.objs\plugins\codecompletion\classbrowserbuilderthread.o:C:\codeblocks\trunk\src\plugins\codecompletion\classbrowserbuilderthread.cpp|1043|more undefined references to `CCTreeCtrlData::CCTreeCtrlData(SpecialFolder, Token*, short, int)' follow|
.objs\plugins\codecompletion\classbrowserbuilderthread.o||In function `ZN25ClassBrowserBuilderThread17SaveExpandedItemsEP10CCTreeCtrl12wxTreeItemIdi':|
C:\codeblocks\trunk\src\plugins\codecompletion\classbrowserbuilderthread.cpp|1082|undefined reference to `CCTreeCtrlExpandedItemData::CCTreeCtrlExpandedItemData(CCTreeCtrlData const*, int)'|
« Last Edit: February 05, 2012, 12:30:26 am by ironhead »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Compilation error with 7770
« Reply #1 on: February 05, 2012, 12:56:47 am »
Try this patch
Code
Index: src/CodeBlocks.cbp
===================================================================
--- src/CodeBlocks.cbp (revision 7772)
+++ src/CodeBlocks.cbp (working copy)
@@ -1281,6 +1281,9 @@
  <Unit filename="plugins\codecompletion\ccoptionsprjdlg.h">
  <Option target="Code-completion" />
  </Unit>
+ <Unit filename="plugins\codecompletion\cctreectrl.cpp">
+ <Option target="Code-completion" />
+ </Unit>
  <Unit filename="plugins\codecompletion\classbrowser.cpp">
  <Option target="Code-completion" />
  </Unit>
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Compilation error with 7770
« Reply #2 on: February 05, 2012, 02:25:48 am »
Fixed in revision: 7773, thanks for the bug report and patch.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Re: Compilation error with 7770
« Reply #3 on: February 05, 2012, 02:52:41 am »
Thank you for the quick fix!  ;D