cnjinhao / nana

a modern C++ GUI library
https://nana.acemind.cn
Boost Software License 1.0
2.32k stars 333 forks source link

Compilation error with GCC 14 #708

Open mh466lfa opened 1 month ago

mh466lfa commented 1 month ago

I'm using w64devkit version 2.0.0.

This is the error message:

../../source/gui/widgets/treebox.cpp:359:60: error: no matching function for call to 'find(std::vector<nana::widgets::detail::tree_node<nana::drawerbase::treebox::trigger::treebox_node_type>*>::iterator, std::vector<nana::widgets::detail::tree_node<nana::drawerbase::treebox::trigger::treebox_node_type>*>::iterator, nana::drawerbase::treebox::trigger::implementation::node_type*&)'
  359 |                                         auto it = std::find(nodes_selected.begin(), nodes_selected.end(), node);
      |                                                   ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
make: *** [makefile:41: out/objs/gui/widgets/treebox.o] Error 1

I cloned the branch dev_dpi_system and build it using build/makefile.

Curculigo commented 1 month ago

I'm using llvm-mingw and it compiled just fine for me.

qPCR4vir commented 1 month ago

Thanks for taking your time to try that branch. It is highly experimental. I will continue working on it by the end of this years. It is working 'on my computer' but it is not well tested, and not with gcc14.2. And I did not use/ not adapted /makefile. Only cmake. Please try that. It will be great if you fix that makefile dir for this branch. If you are just trying nana, the best branch is develop-1.8