Yolo_mark icon indicating copy to clipboard operation
Yolo_mark copied to clipboard

error: ‘setfill’ is not a member of ‘std

Open ENegatiVY opened this issue 5 years ago • 1 comments

ubuntu16.04 gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609

After I clone the project, I just cd into the directory and follow the guide.

  1. "cmake ."
  2. "make"

and I got this error

envy@amax:~/GIT/Yolo_mark$ make Scanning dependencies of target yolo_mark [ 50%] Building CXX object CMakeFiles/yolo_mark.dir/main.cpp.o /home/envy/GIT/Yolo_mark/main.cpp: In function ‘int main(int, char**)’: /home/envy/GIT/Yolo_mark/main.cpp:179:41: error: ‘setw’ is not a member of ‘std’ image_counter_ss << std::setw(8) << std::setfill('0') << image_counter; ^ /home/envy/GIT/Yolo_mark/main.cpp:179:57: error: ‘setfill’ is not a member of ‘std’ image_counter_ss << std::setw(8) << std::setfill('0') << image_counter; ^ CMakeFiles/yolo_mark.dir/build.make:62: recipe for target 'CMakeFiles/yolo_mark.dir/main.cpp.o' failed make[2]: *** [CMakeFiles/yolo_mark.dir/main.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/yolo_mark.dir/all' failed make[1]: *** [CMakeFiles/yolo_mark.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

ENegatiVY avatar Mar 07 '19 09:03 ENegatiVY

@TPchanger THanks! I fixed it. Download your code from GitHub.

AlexeyAB avatar Mar 07 '19 10:03 AlexeyAB