Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to `std::thread::_State::~_State()@GLIBCXX_3.4.22' #12

Closed
AIGirl10 opened this issue Oct 2, 2020 · 2 comments
Closed

Comments

@AIGirl10
Copy link

AIGirl10 commented Oct 2, 2020

When try to build the project for x86, it is giving this error

light-LPR/lib/libMNN.so: undefined reference to `std::thread::_State::~_State()@GLIBCXX_3.4.22'
light-LPR/lib/libMNN.so: undefined reference to `std::thread::_M_start_thread(std::unique_ptr<std::thread::_State, std::default_delete<std::thread::_State> >, void (*)())@GLIBCXX_3.4.22'
collect2: error: ld returned 1 exit status
src/examples/CMakeFiles/demo.dir/build.make:88: recipe for target 'examples/demo' failed
make[2]: *** [examples/demo] Error 1
CMakeFiles/Makefile2:145: recipe for target 'src/examples/CMakeFiles/demo.dir/all' failed
make[1]: *** [src/examples/CMakeFiles/demo.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
@lqian
Copy link
Owner

lqian commented Oct 10, 2020

please compile MNN lib on your working platform.

@AIGirl10
Copy link
Author

Yes @lqian thanks. error got solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants