Author Topic: toolsmanager.h:46: error: 'class ToolsList::Node' has not been declared  (Read 5804 times)

bertz

  • Guest
I have been trying for quite sometime to get codeblocks installed from the source code on my machine.
I got the svn version, run bootstrap and configure.
Until then, everything works fine.
But during make install, I get the following message:

Code
toolsmanager.h:46: error: 'class ToolsList::Node' has not been declared

Does it have anything to do with wxWidgets? I have 2.8.9, is it compatible with codeblocks?

Thanks in advance for any kind of help.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: toolsmanager.h:46: error: 'class ToolsList::Node' has not been declared
« Reply #1 on: August 26, 2009, 04:37:06 pm »
Searching the forum gives the answer.

Your wxWidgets-version is built with --enable-STL, that will not work.

See this thread: http://forums.codeblocks.org/index.php/topic,6797.msg52084.html#msg52084

Offline Mephistopheles

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: toolsmanager.h:46: error: 'class ToolsList::Node' has not been declared
« Reply #2 on: September 16, 2009, 06:12:41 pm »
[...]Your wxWidgets-version is built with --enable-STL, that will not work.[...]

Hm, that can't be the actual reason because the stuff on openSUSE 11.1 is compiled with --enable-STL but still CodeBlocks compiles & runs there just fine but fails to compile on 11.2 / Factory for some unknown reason with exactly that error message.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: toolsmanager.h:46: error: 'class ToolsList::Node' has not been declared
« Reply #3 on: September 17, 2009, 02:51:30 am »
[...]Your wxWidgets-version is built with --enable-STL, that will not work.[...]

Hm, that can't be the actual reason because the stuff on openSUSE 11.1 is compiled with --enable-STL but still CodeBlocks compiles & runs there just fine but fails to compile on 11.2 / Factory for some unknown reason with exactly that error message.



The Code::Blocks code using wxWidgets is NOT STL ready.
Use an wxWidgets Library compilied without STL or spend several days or months fixing the Code::Blocks code.

Edit: If you wish to spend the effert, please start by using my patch that fixes that error; but, many more still exist.
[ Patch #2161 ] wxList related patch to help compile with STL wxWidgets
http://developer.berlios.de/patch/?func=detailpatch&patch_id=2161&group_id=5358



Tim S.
« Last Edit: September 17, 2009, 02:54:49 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org