OpenCV C++ Example Error

Hi,
I try to run OpenCV C++ code with RISCV architecture.
I’m following the DNN Googlenet link but I always take this error shown below.
The code I try to run: OpenCV: Load Caffe framework models

root@ubuntu:/home/anil/Desktop/googlenet# riscv64-unknown-linux-gnu-g++ main.cpp -o sone -I /home/anil/Desktop/project/opencv/include/ -I /home/anil/Desktop/project/opencv/modules/core/include -I /home/anil/Desktop/project/opencv/build/install/include/opencv4 -I /home/anil/Desktop/project/opencv/modules/core/include/opencv2 -I /home/anil/Desktop/project/riscv-gnu-toolchain/gdb/zlib -I /home/anil/Desktop/deneme/gitdene/cnpy/ -I /usr/include/mkl -L/home/anil/Desktop/project/opencv/build/lib -lopencv_core -lopencv_imgcodecs -lopencv_imgproc -I /home/anil/Desktop/project/opencv/build/install/include/opencv4/opencv2/core/cuda -I/usr/local/cuda/include

main.cpp: In function 'int main(int, char**)':
main.cpp:32:17: error: 'genPreprocArguments' was not declared in this scope
   32 |         keys += genPreprocArguments(modelName, zooFile);
      |                 ^~~~~~~~~~~~~~~~~~~
main.cpp:45:24: error: 'findFile' was not declared in this scope; did you mean 'cv::samples::findFile'?
   45 |         String model = findFile(parser.get<String>("model"));
      |                        ^~~~~~~~
      |                        cv::samples::findFile
In file included from /home/anil/Desktop/project/opencv/include/opencv2/core.hpp:3350,
                 from /home/anil/Desktop/project/opencv/build/install/include/opencv4/opencv2/dnn/dnn.hpp:46,
                 from /home/anil/Desktop/project/opencv/build/install/include/opencv4/opencv2/dnn.hpp:76,
                 from main.cpp:3:
/home/anil/Desktop/project/opencv/modules/core/include/opencv2/core/utility.hpp:1181:25: note: 'cv::samples::findFile' declared here
 1181 | CV_EXPORTS_W cv::String findFile(const cv::String& relative_path, bool required = true, bool silentMode = false);

that sample code may be terribly out of date

why don’t you try to specify the complete namespace for those calls?