AlexeyAB / Yolo_mark

GUI for marking bounded boxes of objects in images for training neural network Yolo v3 and v2
https://github.com/AlexeyAB/darknet
The Unlicense
1.8k stars 680 forks source link

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

Open ENegatiVY opened 5 years ago

ENegatiVY commented 5 years ago

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

AlexeyAB commented 5 years ago

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