radareorg / r2retdec

RetDec plugin for Radare2
https://retdec.com/
MIT License
125 stars 24 forks source link

compilation error [solved] #38

Closed sharpicx closed 2 years ago

sharpicx commented 2 years ago

anyone can help me?

issue solved. nvm i just need to change r_anal_fcn_add_bb to r_anal_function_add_bb lol


/home/hidden/.recycle/retdec-r2plugin/src/r2plugin/r2data.cpp: In member function ‘void retdec::r2plugin::R2Database::setFunction(const retdec::common::Function&) const’:
/home/hidden/.recycle/retdec-r2plugin/src/r2plugin/r2data.cpp:76:22: error: ‘r_anal_fcn_add_bb’ was not declared in this scope; did you mean ‘r_anal_function_add_bb’?
   76 |                 if (!r_anal_fcn_add_bb(_r2core.anal, r2fnc, fnc.getStart().getValue(), fnc.getSize().getValue(), UT64_MAX, UT64_MAX, nullptr))
      |                      ^~~~~~~~~~~~~~~~~
      |                      r_anal_function_add_bb
make[2]: *** [src/r2plugin/CMakeFiles/core_retdec.dir/build.make:90: src/r2plugin/CMakeFiles/core_retdec.dir/r2data.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2243: src/r2plugin/CMakeFiles/core_retdec.dir/all] Error 2
make: *** [Makefile:136: all] Error 2```