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

include\opencv2\core\mat.inl.hpp|666|undefined reference to `__atomic_fetch_add_4'| #5581

Closed
Maple-Wang opened this issue Oct 28, 2015 · 3 comments
Labels

Comments

@Maple-Wang
Copy link

||=== Build: Debug in wangfengtest (compiler: GNU GCC Compiler) ===|
obj\Debug\main.o||In function ZN2cv3Mat7releaseEv':| D:\install\install\include\opencv2\core\mat.inl.hpp|666|undefined reference to__atomic_fetch_add_4'|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|

@StevenPuttemans
Copy link

This is no bug, you are using prebuilt release libraries and you are your trying to run your application in debug mode. That won't work. If you want debug libraries, you need to built OpenCV yourself and use those.

@Maple-Wang
Copy link
Author

I used OpenCV built by myself and use the default build method ,both debug and release can run on
the default mode.

@StevenPuttemans
Copy link

But still, you can then mismatch your includes with your build option, exactly what happens here. Be sure to include either the release or the debug libs to your project and not both!

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

No branches or pull requests

4 participants