Closed 86maid closed 2 months ago
Make sure you have GCC >=10.5 installed.
root@XChuang233:/home/fuck/new_ddddocr/ddddocr# gcc --version
gcc (Ubuntu 11.4.0-2ubuntu1~20.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
After upgrading the GCC version, another error appeared during compilation.
error: linking with `cc` failed: exit status: 1
= note: /usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
The issue was resolved after I installed g++11.